Xml
Xml (Class)
Cross-platform Xml API.
See: https://haxe.org/manual/std-Xml.html
Static Members
XML element type.
XML parsed character data type.
XML character data type.
XML comment type.
XML doctype element type.
XML processing instruction type.
XML document type.
Parses the String into an Xml document.
Creates a node of the given type.
Creates a node of the given type.
Creates a node of the given type.
Creates a node of the given type.
Creates a node of the given type.
createProcessingInstruction(data: String): Xml
Creates a node of the given type.
Creates a node of the given type.
Instance Members
Returns the type of the Xml Node. This should be used before
accessing other functions since some might raise an exception
if the node type is not correct.
Returns the node name of an Element.
Returns the node value. Only works if the Xml node is not an Element or a Document.
Returns the parent object in the Xml hierarchy.
The parent can be null
, an Element or a Document.
Get the given attribute of an Element node. Returns null
if not found.
Attributes are case-sensitive.
Set the given attribute value for an Element node.
Attributes are case-sensitive.
Tells if the Element node has a given attribute.
Attributes are case-sensitive.
Returns an Iterator
on all the attribute names.
Returns an iterator of all child nodes.
Only works if the current node is an Element or a Document.
Returns an iterator of all child nodes which are Elements.
Only works if the current node is an Element or a Document.
Returns an iterator of all child nodes which are Elements with the given nodeName.
Only works if the current node is an Element or a Document.
Returns the first child node which is an Element.
Adds a child node to the Document or Element.
A child node can only be inside one given parent node, which is indicated by the parent
property.
If the child is already inside this Document or Element, it will be moved to the last position among the Document or Element's children.
If the child node was previously inside a different node, it will be moved to this Document or Element.
Removes a child from the Document or Element.
Returns true if the child was successfuly removed.
Returns a String representation of the Xml node.
Private Members
ensureElementType(): Void