XMLTools[RemoveAttribute] - remove an attribute from an XML element
|
Calling Sequence
|
|
RemoveAttribute(xmlTree, attrName)
|
|
Parameters
|
|
xmlTree
|
-
|
Maple XML tree; XML element
|
attrName
|
-
|
string; attribute name
|
|
|
|
|
Description
|
|
•
|
The RemoveAttribute(xmlTree, attrName) command removes the attribute whose name is attrName from the XML element xmlTree. A new XML tree is returned that does not contain an attribute by this name.
|
|
If the input XML tree xmlTree has no attribute named attrName, then the input tree is returned. In cases such as this, there is no guarantee that the returned tree is distinct from the input tree.
|
|
|
Examples
|
|
>
|
|
>
|
|
>
|
|
<a colour = 'red' size = '10'>some text</a>
| |
>
|
|
<a size = '10'>some text</a>
| |
>
|
|
<a colour = 'red' size = '10'>some text</a>
| |
|
|
Download Help Document
Was this information helpful?