xmlAsNumberConvert the result of a XPath query into a row of numbersCalling Sequence
nums = xmlAsNumber(xp)
Argumentsxpxp, a XML mlist typed XMLSet or XMLListnumsnums, a single row of doublesDescriptionThe result of a XPath query or the chidren of a node can be a set of XMLElements which contains numbers, so the aim of this function is to convert the contents of each nodes into a double.Examples12131.234567845e3.23E-2");
// Retrieve the content of the nodes with name equal to "a"
xp = xmlXPath(doc, "//a/text()");
// convert the result into doubles
data = xmlAsNumber(xp)
xmlDelete(doc);
]]>See Also
xmlXPath
xmlAsText
xmlName
History5.4.0XML module introduced.