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[ParseFile] - read an XML document from a file
Calling Sequence
ParseFile(fileName, opts)
Parameters
fileName
-
string; name of file to read
opts
equation(s) of the form option=value where option is one of validate, entities, prolog, or whitespace; specify parsing options
Description
The ParseFile(fileName) command reads XML data from the file fileName.
The file is closed after it is read.
The opts argument can contain one or more equations that set parsing options.
The validate option determines whether a validating or a non-validating parser should be used. Possible values are true and false. By default validate is set to false.
The entities option determines whether the parser should resolve entity references. Possible values are name and value. By default entities is set to name.
The prolog option determines whether prolog should be included in the document. Possible values are true and false. By default prolog is set to false.
The whitespace option indicates whether ignorable whitespace should be included in the document. Possible values are true and false. This option is effective only if validate is set to true. By default whitespace is set to true.
Examples
See Also
XMLTools, XMLTools[ParseString], XMLTools[ToString]
Download Help Document