IBus.XML¶
Fields¶
Name |
Type |
Access |
Description |
---|---|---|---|
attributes |
r/w |
Attributes of the XML node. |
|
name |
r/w |
Name of XML tag. |
|
sub_nodes |
[ |
r/w |
Children node of this XML node. |
text |
r/w |
Text enclosed by XML start tag and end tag. i.e. <tag>text</tag>. |
Methods¶
class |
|
class |
|
|
|
|
|
|
Details¶
- class IBus.XML¶
IBus.XML
lists data structure and handling function for XML in IBus.- classmethod parse_buffer(buffer)¶
- Parameters:
buffer (
str
) – Buffer to be parsed.- Returns:
Root node of parsed XML tree.
- Return type:
Parse a string buffer which contains an XML-formatted string, and return a corresponding XML tree.
- classmethod parse_file(name)¶
- Parameters:
name (
str
) – File name to be parsed.- Returns:
Root node of parsed XML tree.
- Return type:
Parse an XML file and return a corresponding XML tree.
- copy()¶
- Returns:
the newly allocated
IBus.XML
, which should be freed withIBus.XML.free
(), orNone
if self wasNone
.- Return type:
Creates a copy of self, which should be freed with
IBus.XML.free
(). Primarily used by language bindings, not that useful otherwise (since self can just be copied by assignment in C).
- free()¶
Free an XML tree.
- output(output)¶
- Parameters:
output (
GLib.String
) –GLib.String
which stores the output.
Output an XML tree to a
GLib.String
.