IBus Reference Manual | ||||
---|---|---|---|---|
Top | Description |
XMLNode; XMLNode * ibus_xml_parse_file (const gchar *name
); XMLNode * ibus_xml_parse_buffer (const gchar *buffer
); void ibus_xml_free (XMLNode *node
); void ibus_xml_output (const XMLNode *node
,GString *output
);
typedef struct { gchar *name; gchar *text; gchar **attributes; GList *sub_nodes; } XMLNode;
A data type representing an XML nod.
XMLNode * ibus_xml_parse_file (const gchar *name
);
Parse an XML file and return a corresponding XML tree.
|
File name to be parsed. |
Returns : |
Root node of parsed XML tree. |
XMLNode * ibus_xml_parse_buffer (const gchar *buffer
);
Parse a string buffer which contains an XML-formatted string, and return a corresponding XML tree.
|
Buffer to be parsed. |
Returns : |
Root node of parsed XML tree. |
void ibus_xml_free (XMLNode *node
);
Free an XML tree.
|
Root node of an XML tree. |
void ibus_xml_output (const XMLNode *node
,GString *output
);
Output an XML tree to a GString.
|
Root node of an XML tree. |
|
GString which stores the output. |