6.0

Table Of Contents
166
Language Reference
4
Example
xmlcount('/agency/crew')
xmlGet()
Retrieves values through the structure of an XML file. This function uses a single parameter specifying the
XPath of the value to be retrieved. This function returns a string. The return value is an empty string if no
value is found or if the specified Element is invalid or not found.
Syntax
xmlget('XPath')
Arguments
XPath — A single parameter specifying the value to be retrieved.
Code Sample Example
This example illustrates using the show command to display the result returned by xmlGet().
Example
xmlget('/agency/crew/salary')
xmlResetRoot()
Resets the XML root path to its default value. The function expects no parameters.
xmlSetRoot()
Sets the XML root path. It accepts a single parameter which is a standard XPath expression.