XMLTools[HasAttribute] - test whether an XML element has a specified attribute
|
Calling Sequence
|
|
HasAttribute(xmlTree, attrName)
|
|
Parameters
|
|
xmlTree
|
-
|
Maple XML tree; XML element
|
attrName
|
-
|
string; attribute name
|
|
|
|
|
Description
|
|
•
|
The HasAttribute(xmlTree, attrName) command tests whether an attribute with the name attrName is present in the XML element xmlTree. The value true is returned if the attribute is present in xmlTree. Otherwise, false is returned.
|
|
|
Examples
|
|
>
|
|
>
|
|
>
|
|
>
|
|
| (1) |
>
|
|
| (2) |
>
|
|
| (3) |
>
|
|
| (4) |
|
|
Download Help Document
Was this information helpful?