Scilab 6.0.0
- Aide de Scilab
- Gestion des fichiers XML
- 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
Aide de Scilab >> Gestion des fichiers XML > xmlName
xmlName
Retrieve the name of the elements.
Syntax
names = xmlName(obj)
Arguments
- obj
obj, a XML mlist typed XMLSet or XMLList or XMLElem or XMLAttr
- name
names, a single row of strings
Description
Retrieve the name(s) of the elements composing the XMLObject.
Examples
doc = xmlReadStr("<root><foo a=""123"" b=""456"" c=""789""/></root>") // Retrieve the name of a single element xmlName(doc.root.children(1)) // Retrieve the names of an attributes list xmlName(doc.root.children(1).attributes) // Retrieve the names of the result of a XPath query xmlName(xmlXPath(doc,"//foo/@*")) xmlDelete(doc);
See Also
- xmlXPath — Make a XPath query on a XML document
- xmlAsText — Convert the result of a XPath query into a row of strings
- xmlAsNumber — Convert the result of a XPath query into a row of numbers
History
Version | Description |
5.4.1 | xmlName function introduced. |
Comments
Add a comment:
Please login to comment this page.