Low-level class for creating parsers for XML files.
</brief_description>
<description>
This class can serve as base to make custom XML parsers. Since XML is a very flexible standard, this interface is low level so it can be applied to any possible schema.
Get the value of a certain attribute of the current element by name. This will return an empty [String] if the attribute is not found.
</description>
</method>
<methodname="get_node_data"qualifiers="const">
<returntype="String">
</return>
<description>
Get the contents of a text node. This will raise an error in any other type of node.
</description>
</method>
<methodname="get_node_name"qualifiers="const">
<returntype="String">
</return>
<description>
Get the name of the current element node. This will raise an error if the current node type is not [code]NODE_ELEMENT[/code] nor [code]NODE_ELEMENT_END[/code]
</description>
</method>
<methodname="get_node_offset"qualifiers="const">
<returntype="int">
</return>
<description>
Get the byte offset of the current node since the beginning of the file or buffer.
</description>
</method>
<methodname="get_node_type">
<returntype="int"enum="XMLParser.NodeType">
</return>
<description>
Get the type of the current node. Compare with [code]NODE_*[/code] constants.
</description>
</method>
<methodname="has_attribute"qualifiers="const">
<returntype="bool">
</return>
<argumentindex="0"name="name"type="String">
</argument>
<description>
Check whether or not the current element has a certain attribute.
</description>
</method>
<methodname="is_empty"qualifiers="const">
<returntype="bool">
</return>
<description>
Check whether the current element is empty (this only works for completely empty tags, e.g. <element \>).
</description>
</method>
<methodname="open">
<returntype="int"enum="Error">
</return>
<argumentindex="0"name="file"type="String">
</argument>
<description>
Open a XML file for parsing. This returns an error code.