diff options
Diffstat (limited to 'gladeui/glade-xml-utils.c')
-rw-r--r-- | gladeui/glade-xml-utils.c | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/gladeui/glade-xml-utils.c b/gladeui/glade-xml-utils.c index e0bdeb05..c280c8f7 100644 --- a/gladeui/glade-xml-utils.c +++ b/gladeui/glade-xml-utils.c @@ -758,6 +758,22 @@ glade_xml_context_get_doc (GladeXmlContext *context) return context->doc; } +gchar * +glade_xml_dump_from_context (GladeXmlContext *context) +{ + GladeXmlDoc *doc; + xmlChar *string = NULL; + gchar *text; + int size; + + doc = glade_xml_context_get_doc (context); + xmlDocDumpFormatMemory(&(doc->doc), &string, &size, 1); + + text = claim_string (string); + + return text; +} + gboolean glade_xml_node_is_comment (GladeXmlNode *node_in) { |