IBus.XML

Fields

Name

Type

Access

Description

attributes

str

r/w

Attributes of the XML node.

name

str

r/w

Name of XML tag.

sub_nodes

[object]

r/w

Children node of this XML node.

text

str

r/w

Text enclosed by XML start tag and end tag. i.e. <tag>text</tag>.

Methods

class

parse_buffer (buffer)

class

parse_file (name)

copy ()

free ()

output (output)

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:

IBus.XML

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:

IBus.XML

Parse an XML file and return a corresponding XML tree.

copy()
Returns:

the newly allocated IBus.XML, which should be freed with IBus.XML.free(), or None if self was None.

Return type:

IBus.XML

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.