The XPathNumber()
function executes the given XPath query on XML text and returns the result as a number.
Follow this link to learn more about XPath.
Syntax
XPathNumber(xml, xpath)
Returns
An number that is the result of an xpath query.
- If the result is not a number then returns an unknown number.
- If the result is a list then returns the length of the list.
Parameters
xml
– Text that contains XMLxpath
– Text that contains an XPath query