XMLTools
ElementName
return the element tag name of a node in an XML tree
Calling Sequence
Parameters
Description
Examples
ElementName(xmlTree)
xmlTree
-
Maple XML tree; XML element
The ElementName(xmlTree) command returns the element tag name of the XML element represented by the Maple XML tree xmlTree.
The element tag name is returned as a string, including any namespace prefix, if present. To distinguish between elements whose element types belong to different namespaces, yet print the same, use the XMLTools[ElementType] command.
with⁡XMLTools:
ElementName⁡XMLElement⁡a
a
ElementName⁡XMLElement⁡a,xmlns=http://someurl,some text
ElementName⁡XMLElement⁡p:a,xmlns:p=http://someurl,some text
p:a
See Also
XMLTools[ElementType]
Download Help Document