Maple Professional
Maple Academic
Maple Student Edition
Maple Personal Edition
Maple Player
Maple Player for iPad
MapleSim Professional
MapleSim Academic
Maple T.A. - Testing & Assessment
Maple T.A. MAA Placement Test Suite
Möbius - Online Courseware
Machine Design / Industrial Automation
Aerospace
Vehicle Engineering
Robotics
Power Industries
System Simulation and Analysis
Model development for HIL
Plant Modeling for Control Design
Robotics/Motion Control/Mechatronics
Other Application Areas
Mathematics Education
Engineering Education
High Schools & Two-Year Colleges
Testing & Assessment
Students
Financial Modeling
Operations Research
High Performance Computing
Physics
Live Webinars
Recorded Webinars
Upcoming Events
MaplePrimes
Maplesoft Blog
Maplesoft Membership
Maple Ambassador Program
MapleCloud
Technical Whitepapers
E-Mail Newsletters
Maple Books
Math Matters
Application Center
MapleSim Model Gallery
User Case Studies
Exploring Engineering Fundamentals
Teaching Concepts with Maple
Maplesoft Welcome Center
Teacher Resource Center
Student Help Center
XMLTools[StripAttributes] - remove all attributes from an XML element
XMLTools[StripComments] - remove all comments from an XML element
Calling Sequence
StripAttributes(xmlTree)
StripComments(xmlTree)
Parameters
xmlTree
-
Maple XML tree; XML element
Description
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.
Examples
See Also
XMLTools, XMLTools[Attributes], XMLTools[RemoveAttributes]
Download Help Document