LuaXmlNode Methods
A LuaXmlNode object represents a single node in an XML document.
If you have a LuaXmlNode object called node you can call its methods using the ':' operator. For example:
node:name()
| Method | Description |
|---|---|
| attr | Returns the first LuaXmlAttribute attribute object for this element. |
| content | Returns the content (text element) of the XML node. |
| firstChild | Returns a LuaXmlNode that is the first child of this node. |
| lastChild | Returns a LuaXmlNode that is the last child of this node. |
| name | Returns the name of the XML node. |
| next | Returns a LuaXmlNode that is the next sibling of this node. |
| nodePath | Returns the XML path to the node that can be used in another XPath query. |
| parent | Returns the parent LuaXmlNode of the node. |
| prev | Returns a LuaXmlNode that is the previous sibling of this node. |
| type | Returns the type of the node as a string. |