Scilab 5.5.1
- Ajuda do Scilab
- XML Management
- XML Objects
- htmlDump
- htmlRead
- htmlReadStr
- htmlWrite
- xmlAddNs
- xmlAppend
- xmlAsNumber
- xmlAsText
- xmlDTD
- xmlDelete
- xmlDocument
- xmlDump
- xmlElement
- xmlFormat
- xmlGetNsByHref
- xmlGetNsByPrefix
- xmlGetOpenDocs
- xmlIsValidObject
- xmlName
- xmlNs
- xmlRead
- xmlReadStr
- xmlRelaxNG
- xmlRemove
- xmlSchema
- xmlSetAttributes
- xmlValidate
- xmlWrite
- xmlXPath
Please note that the recommended version of Scilab is 2025.0.0. This page might be outdated.
See the recommended documentation of this function
xmlAsText
Convert the result of a XPath query into a row of strings
Calling Sequence
strings = xmlAsText(xp)
Arguments
- xp
xp, a XML mlist typed XMLSet or XMLList
- strings
strings, a single row of strings
Description
The 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.
Examples
doc = xmlReadStr("<root><a>Hello</a><a>Scilab</a><a>World</a></root>"); // 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 — Make a XPath query on a XML document
- xmlAsNumber — Convert the result of a XPath query into a row of numbers
- xmlName — Retrieve the name of the elements.
History
Versão | Descrição |
5.4.0 | XML module introduced. |
Report an issue | ||
<< xmlAsNumber | XML Management | xmlDTD >> |