GdaXmlDocument

GdaXmlDocument — Base class for XML document management

Functions

Description

Functions

gda_xml_document_new ()

GdaXmlDocument *
gda_xml_document_new (const gchar *root_doc);

Creates a new GdaXmlDocument object, with a root document of type root_doc .

Parameters

root_doc

root document.

 

Returns

a newly allocated object.


gda_xml_document_construct ()

void
gda_xml_document_construct (GdaXmlDocument *xmlfile,
                            const gchar *root_doc);


gda_xml_document_get_compress_mode ()

gint
gda_xml_document_get_compress_mode (GdaXmlDocument *xmldoc);

Returns the compression mode being used by the given XML document.

Parameters

xmldoc

a GdaXmlDocument object.

 

gda_xml_document_set_compress_mode ()

void
gda_xml_document_set_compress_mode (GdaXmlDocument *xmldoc,
                                    gint mode);

Sets the compression mode that the given XML document should use.

Parameters

xmldoc

a GdaXmlDocument object.

 

mode

a compression mode.

 

gda_xml_document_to_file ()

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.

Parameters

xmldoc

a GdaXmlDocument object.

 

uri

URI of the resulting file.

 

Returns

TRUE if successful, FALSE on error.


gda_xml_document_stringify ()

gchar *
gda_xml_document_stringify (GdaXmlDocument *xmldoc);

Parameters

xmldoc

a GdaXmlDocument object.

 

Returns

a string representation of the given XML document.

Types and Values