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[FirstChild] - extract the first child node of an XML tree
XMLTools[SecondChild] - extract the second child node of an XML tree
XMLTools[ThirdChild] - extract the third child node of an XML tree
XMLTools[LastChild] - extract the last child node of an XML tree
Calling Sequence
FirstChild(xmlTree)
SecondChild(xmlTree)
ThirdChild(xmlTree)
LastChild(xmlTree)
Parameters
xmlTree
-
Maple XML tree; XML element
Description
Each of these routines accesses a particular child of the given XML element xmlTree. The returned expression is either of type string (NULL is returned in the case of a plain text child node) or an XML tree data structure (when the child node has a tree structure of its own).
Each of these procedures is a specialization of the GetChild routine for common special cases. For instance, SecondChild retrieves the second content element of xmlTree if there are at least two such children. Otherwise, NULL is returned.
Examples
<a colour = 'red'> <b>foo</b> <c>bar</c> <d>baz</d> </a>
<b>foo</b>
<c>bar</c>
<d>baz</d>
See Also
XMLTools, XMLTools[GetChild], XMLTools[HasChild]
Download Help Document