/* -*- Mode: C; tab-width: 8; indent-tabs-mode: t; c-basic-offset: 8 -*- */ /* This functions are based on gnome-print/libgpa/gpa-xml.c which were in turn * based on gnumeric/xml-io.c */ /* Authors: * Daniel Veillard * Miguel de Icaza * Chema Celorio */ /** * SECTION:glade-xml-utils * @Title: Xml Utils * @Short_Description: An api to read and write xml. * * You may need these tools if you are implementing #GladeReadWidgetFunc * and/or #GladeWriteWidgetFunc on your #GladeWidgetAdaptor to read * and write widgets in custom ways */ #include "config.h" #include #include #include #include "glade-xml-utils.h" #include "glade-catalog.h" #include #include #include #include struct _GladeXmlNode { xmlNodePtr node; }; struct _GladeXmlDoc { xmlDoc doc; }; struct _GladeXmlContext { GladeXmlDoc *doc; gboolean freedoc; xmlNsPtr ns; }; /* This is used inside for loops so that we skip xml comments *