Retrieve the name of the elements.
names = xmlName(obj)
obj, a XML mlist typed XMLSet or XMLList or XMLElem or XMLAttr
names, a single row of strings
Retrieve the name(s) of the elements composing the XMLObject.
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); | ![]() | ![]() |
Version | Description |
5.4.1 | xmlName function introduced. |