Module simple-xml

The simple-xml module provides basic XML parsing and navigation.  It only supports character data and start, end, and empty-element tags.  The module does not support entities, comments, CDATA sections, or processing instructions.  Entities are treated as literal character data, and any other markup will likely produce an error.

Therefore, this module can parse some well-formed XML documents, but cannot parse any valid XML documents, as valid documents contain a document type declaration.

Exported from

Library system

Summary
The simple-xml module provides basic XML parsing and navigation.

simple-xml names

The system library.
A class representing an XML document.
A class representing an XML element.
The class of XML parsing errors.
A class representing an XML node.
Returns the root element of an <xml-document>.
Sets the root element of an <xml-document>.
Returns the file location of an <xml-document>.
Sets the file location of an <xml-document>.
Returns the value of an attribute of an <xml-element>.
Returns all the attributes of an <xml-element> in a table.
Sets the value of an attribute of an <xml-element>.
Returns the child elements of an <xml-element>.
Returns the tag name of an <xml-element>.
Returns the character data of an <xml-element>.
Sets the character data of an <xml-element>.
Reads a simple XML file and returns an <xml-document>.
Returns nodes matching a path.
Returns the character data of the first XML element matching a path.
Returns the first XML element matching a path.