Getting Started > Use Lua Scripts > Method Reference > XMLDocument Methods

XMLDocument Methods
root
Returns an XmlNode which is the root node of the XML document.
Syntax
root()
Returns
An XmlNode.
XPathExecute
Returns XmlNodeSet which is the result of supplied XPath query.
Syntax
XPathExecute( String xpathQuery )
Arguments
 
Returns
An XmlNodeSet node set.
XPathRegisterNs
Register a namespace with the XML parser. Returns an integer detailing the error code.
Syntax
XPathRegisterNs( String prefix, String URI )
Arguments
 
Returns
0 in case of success, -1 in case of error.
XPathValue
Returns the first occurance of the value matching the XPath query.
Syntax
String XPathValue(String query)
Arguments
 
Returns
A string of the value.
XPathValues
Returns a table of strings containing the values according to the XPath query.
Syntax
Table XPathValues(String query)
Arguments
 
Returns
A table of strings of the values.