xmlAsTextConvert the result of a XPath query into a row of stringsCalling Sequence
strings = xmlAsText(xp)
Argumentsxpxp, a XML mlist typed XMLSet or XMLListstringsstrings, a single row of stringsDescriptionThe result of a XPath query or the children of a node can be a set of XMLElements, so the aim of this function is to convert the contents of each nodes into a string.ExamplesHelloScilabWorld");
// Retrieve the content of the nodes with name equal to "a"
xp = xmlXPath(doc, "//a/text()");
// convert the result into a row of strings
data = xmlAsText(xp)
xmlDelete(doc);
]]>See Also
xmlXPath
xmlAsNumber
xmlName
History5.4.0XML module introduced.