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[WriteFile] - write a Maple XML tree data structure to a file as an XML document
Calling Sequence
WriteFile(fileName, xmlTree)
Parameters
fileName
-
string; name of file
xmlTree
Maple XML tree; XML element
Description
The WriteFile(fileName, xmlTree) function writes the specified XML element xmlTree in the form of a string to the file fileName. The string is produced by using ToString, and a newline character is appended as the resulting string is written to the file. The number of bytes written is returned.
It is assumed that the XML element that is written to the file is well-formed. (This is not checked by Maple.)
This function is part of the XMLTools package, and so it can be used in the form WriteFile(..) only after executing the command with(XMLTools). However, it can always be accessed through the long form of the command by using the form XMLTools[WriteFile](..).
Examples
See Also
filenames, XMLTools, XMLTools[ToString]
Download Help Document