An object containing the data of a XML node.

Constructor

new ()

Variables

arbiter:TreeNode<XmlNode>

The TreeNode instance which owns this node.

read onlyattributes:AttrAccess

XML Attributes (if any).

data:String

PCDATA or CDATA (if any).

name:String

Node element name.

@:noCompletionxml:Xml

Methods

@:value({ deep : true })descendants (name:String, deep:Bool = true):Array<XmlNode>

@:value({ deep : true })firstDescendant (name:String, deep:Bool = true):XmlNode

@:value({ defaultValue : null })get (name:String, ?defaultValue:String):String

Get an XML attribute by name or return defaultValue if the attribute does not exist.

inlineget_attributes ():AttrAccess

iterator ():Iterator<XmlNode>

toString ():String

Static methods

staticof (xml:Xml):XmlNode