ElementName - Maple Help

Online Help

All Products    Maple    MapleSim


XMLTools

  

ElementName

  

return the element tag name of a node in an XML tree

 

Calling Sequence

Parameters

Description

Examples

Calling Sequence

ElementName(xmlTree)

Parameters

xmlTree

-

Maple XML tree; XML element

Description

• 

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.

Examples

withXMLTools:

ElementNameXMLElementa

a

(1)

ElementNameXMLElementa,xmlns=http://someurl,some text

a

(2)

ElementNameXMLElementp:a,xmlns:p=http://someurl,some text

p:a

(3)

See Also

XMLTools

XMLTools[ElementType]