ElementType - Maple Help
For the best experience, we recommend viewing online help using Google Chrome or Microsoft Edge.

Online Help

All Products    Maple    MapleSim


XMLTools

  

ElementType

  

return the element type of a node in an XML tree

  

ElementTypeName

  

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

  

ElementTypePrefix

  

return the prefix of an element type of a node in an XML tree

  

ElementTypeURI

  

return the URI of an element type of a node in an XML tree

 

Calling Sequence

Parameters

Description

Examples

Calling Sequence

ElementType(xmlTree)

ElementTypeName(xmlTree)

ElementTypePrefix(xmlTree)

ElementTypeURI(xmlTree)

Parameters

xmlTree

-

Maple XML tree; XML element

Description

• 

The ElementType(xmlTree) command returns the element type of the XML element represented by the Maple XML tree xmlTree.

• 

Unlike the string returned by XMLTools[ElementName], ElementType returns a data structure that includes full namespace information, when present, so that elements whose tag names print the same, yet belong to different namespaces, can be distinguished.

Examples

(1)

(2)

(3)

(4)

(5)

(6)

See Also

XMLTools

XMLTools[ElementName]

 


Download Help Document