XML and libxml

XML and libxml

Functions

Properties

gboolean pretty-print Read / Write
GsfOutput * sink Read / Write / Construct Only

Types and Values

Object Hierarchy

    GObject
    ╰── GsfXMLOut

Description

Functions

GsfXMLInUnknownFunc ()

gboolean
(*GsfXMLInUnknownFunc) (GsfXMLIn *xin,
                        xmlChar const *elem,
                        xmlChar const **attrs);

GsfXMLInExtDtor ()

void
(*GsfXMLInExtDtor) (GsfXMLIn *xin,
                    gpointer old_state);

GsfXMLProbeFunc ()

gboolean
(*GsfXMLProbeFunc) (const xmlChar *name,
                    const xmlChar *prefix,
                    const xmlChar *URI,
                    int nb_namespaces,
                    const xmlChar **namespaces,
                    int nb_attributes,
                    int nb_defaulted,
                    const xmlChar **attributes);

GSF_XML_IN_NODE_FULL()

#define             GSF_XML_IN_NODE_FULL(parent_id, id, ns, name, has_content, 	\
            			     share_children_with_parent, check_ns, start, end, user)

GSF_XML_IN_NODE()

#define             GSF_XML_IN_NODE(parent_id, id, ns, name, has_content, start, end)

GSF_XML_IN_NS()

#define             GSF_XML_IN_NS(id, uri)

gsf_xml_in_doc_new ()

GsfXMLInDoc *
gsf_xml_in_doc_new (GsfXMLInNode const *nodes,
                    GsfXMLInNS const *ns);

Combine the nodes in the NULL terminated array starting at nodes with the name spaces in the NULL terminated array starting at ns . Prepare the data structures necessary to validate a doument based on that description.

Parameters

nodes

an array of node descriptors

 

ns

an array of namespace identifiers

 

Returns

NULL on error


gsf_xml_in_doc_free ()

void
gsf_xml_in_doc_free (GsfXMLInDoc *doc);

Free up resources

Parameters

doc

GsfXMLInDoc

 

gsf_xml_in_doc_add_nodes ()

void
gsf_xml_in_doc_add_nodes (GsfXMLInDoc *doc,
                          GsfXMLInNode const *nodes);

Adds additional nodes to the structure of doc

Parameters

doc

GsfXMLInDoc

 

nodes

NULL terminated array of GsfXMLInNode

 

gsf_xml_in_doc_parse ()

gboolean
gsf_xml_in_doc_parse (GsfXMLInDoc *doc,
                      GsfInput *input,
                      gpointer user_state);

Read an xml document from input and parse based on the the descriptor in doc

Parameters

doc

GsfXMLInDoc

 

input

GsfInput

 

user_state

arbitrary content stored in the parser

 

Returns

FALSE on error


gsf_xml_in_doc_set_unknown_handler ()

void
gsf_xml_in_doc_set_unknown_handler (GsfXMLInDoc *doc,
                                    GsfXMLInUnknownFunc handler);

Call the function handler when an unexpected child node is found

Parameters

doc

GsfXMLInDoc

 

handler

The function to call.

[scope call]

gsf_xml_in_push_state ()

void
gsf_xml_in_push_state (GsfXMLIn *xin,
                       GsfXMLInDoc const *doc,
                       gpointer new_state,
                       GsfXMLInExtDtorspan> doc="type">voidge
 * @dat: float to	*%*