Static variables
staticread onlyProcessingInstruction:XmlType = XmlType.ProcessingInstruction
XML processing instruction type.
Static methods
Variables
read onlynodeType:XmlType
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.
Methods
addChild(x:Xml):Void
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.
elements():Iterator<Xml>
Returns an iterator of all child nodes which are Elements. Only works if the current node is an Element or a Document.
elementsNamed(name:String):Iterator<Xml>
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.
exists(att:String):Bool
Tells if the Element node has a given attribute. Attributes are case-sensitive.
get(att:String):String
Get the given attribute of an Element node. Returns null
if not found.
Attributes are case-sensitive.
insertChild(x:Xml, pos:Int):Void
Inserts a child at the given position among the other childs. 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 new 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.
removeChild(x:Xml):Bool
Removes a child from the Document or Element. Returns true if the child was successfuly removed.