| GNOME Data Access manual |
|---|
GdaXmlDocumentGdaXmlDocument — Base class for XML document management |
GdaXmlDocument* gda_xml_document_new (const gchar *root_doc); void gda_xml_document_construct (GdaXmlDocument *xmlfile, const gchar *root_doc); gint gda_xml_document_get_compress_mode (GdaXmlDocument *xmldoc); void gda_xml_document_set_compress_mode (GdaXmlDocument *xmldoc, gint mode); gboolean gda_xml_document_to_file (GdaXmlDocument *xmldoc, const gchar *uri); gchar* gda_xml_document_stringify (GdaXmlDocument *xmldoc);
GdaXmlDocument* gda_xml_document_new (const gchar *root_doc);
Creates a new GdaXmlDocument object, with a root document of type root_doc.
| root_doc : | root document. |
| Returns : | a newly allocated object. |
void gda_xml_document_construct (GdaXmlDocument *xmlfile,
const gchar *root_doc);
| xmlfile : | |
| root_doc : |
gint gda_xml_document_get_compress_mode
(GdaXmlDocument *xmldoc);
| xmldoc : | a GdaXmlDocument object. |
| Returns : | the compression mode being used by the given XML document. |
void gda_xml_document_set_compress_mode
(GdaXmlDocument *xmldoc,
gint mode);Sets the compression mode that the given XML document should use.
| xmldoc : | a GdaXmlDocument object. |
| mode : | a compression mode. |
gboolean gda_xml_document_to_file (GdaXmlDocument *xmldoc,
const gchar *uri);Saves the given GdaXmlDocument into a disk file. That is, it translates the in-memory document structure, transforms it to XML and saves, in the given file, the resulting XML output.
| xmldoc : | a GdaXmlDocument object. |
| uri : | URI of the resulting file. |
| Returns : | TRUE if successful, FALSE on error. |
| << GdaXmlDatabase | GDA Providers >> |