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[ElementStatistics] - report on the frequency of elements in an XML element
Calling Sequence
ElementStatistics(xmlTree)
Parameters
xmlTree
-
Maple XML tree; XML element
Description
The ElementStatistics(xmlTree) command returns the frequency of occurrences of each element type that appears in the XML element xmlTree.
A set of equations is returned indicating the number of each element type name that occurs in the XML element represented by the xmlTree. Each equation has the form , where elementName is the name of the element type, and elementFrequency is a non-negative integer that indicates the number of elements of the corresponding type that occur in the element represented by xmlTree.
Examples
If the XML document was saved in the file named myfile.xml, you could use the following commands to determine the frequency of the elements.
See Also
XMLTools, XMLTools[CleanXML], XMLTools[ParseFile], XMLTools[StripAttributes], XMLTools[XMLElement]
Download Help Document