Maple für Professional
Maple für Akademiker
Maple für Studenten
Maple Personal Edition
Maple Player
Maple Player für iPad
MapleSim für Professional
MapleSim für Akademiker
Maple T.A. - Testen & beurteilen
Maple T.A. MAA Placement Test Suite
Möbius - Online-Courseware
Machine Design / Industrial Automation
Luft- und Raumfahrt
Fahrzeugtechnik
Robotics
Energiebranche
System Simulation and Analysis
Model development for HIL
Anlagenmodelle für den Regelungsentwurf
Robotics/Motion Control/Mechatronics
Other Application Areas
Mathematikausbildung
Technik
Allgemein- und berufsbildende Schulen
Testen und beurteilen
Studierende
Finanzmodelle
Betriebsforschung
Hochleistungsrechnen
Physik
Live-Webinare
Aufgezeichnete Webinare
Geplante Veranstaltungen
MaplePrimes
Maplesoft-Blog
Maplesoft-Mitgliedschaft
Maple Ambassador Program
MapleCloud
Technische Whitepapers
E-Mail Newsletters
Maple-Bücher
Math Matters
Anwendungs-Center
MapleSim Modell-Galerie
Anwenderberichte
Exploring Engineering Fundamentals
Lehrkonzepte mit Maple
Maplesoft Welcome-Center
Resource-Center für Lehrer
Help-Center für Studierende
XMLTools[Print] - print an XML document with elements indented
XMLTools[PrintToFile] - print an XML document with elements indented to a disk file
XMLTools[PrintToString] - print an XML document with elements indented to a string
Calling Sequence
Print(xmlTree)
PrintToFile(fileName, xmlTree)
PrintToString(xmlTree)
Parameters
xmlTree
-
Maple XML tree or a string; XML document
fileName
string; filename
Description
The Print(xmlTree) command formats an XML document so that its elements are indented as it is displayed on the default display device.
The PrintToFile(fileName, xmlTree) command is similar to the Print command, except that the formatted XML document is written to the file fileName.
The PrintToString(xmlTree) command formats the XML document and returns a Maple string containing the result. This allows you to pass the formatted XML to other procedures that can further process the document.
A string containing valid XML data can be passed in place of a parsed tree data structure, in which case the string is first parsed, and then printed as though the resulting tree were passed directly.
Examples
<a> <!-- An XML comment --> <b c = 'd'>Some Text <here></b> </a>
See Also
filenames, XMLTools, XMLTools[CleanXML], XMLTools[ContentModel], XMLTools[ParseString]
Download Help Document