XMLTools - Maple Programming Help

Online Help

All Products    Maple    MapleSim


Home : Support : Online Help : Connectivity : Web Features : XMLTools : XMLTools/ElementName

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]

 


Download Help Document

Was this information helpful?



Please add your Comment (Optional)
E-mail Address (Optional)
What is ? This question helps us to combat spam