XMLTools
StripAttributes
remove all attributes from an XML element
StripComments
remove all comments from an XML element
Calling Sequence
Parameters
Description
Examples
StripAttributes(xmlTree)
StripComments(xmlTree)
xmlTree
-
Maple XML tree; XML element
The StripAttributes(xmlTree) command removes all attributes from the XML element xmlTree and returns the resulting XML tree.
The StripComments(xmlTree) command removes all comment structures from the XML element xmlTree and returns the resulting XML tree.
If the input XML tree xmlTree does not have any comments, then the tree is simply returned.
Note: When using these functions, attributes and/or comments are removed at all levels (or subelements) of the XML data structure xmlTree, not only the top-level element that it represents. The resulting XML data structure is completely free of attributes and/or _XML_COMMENT calls.
See Also
XMLTools[Attributes]
XMLTools[RemoveAttributes]
Download Help Document