Maple Professionel
Maple Académique
Maple Edition Étudiant
Maple Personal Edition
Maple Player
Maple Player for iPad
MapleSim Professionel
MapleSim Académique
Maple T.A. - Suite d'examens de classement
Maple T.A. MAA Placement Test Suite
Möbius - Didacticiels de mathématiques en ligne
Machine Design / Industrial Automation
Aéronautique
Ingénierie des véhicules
Robotics
Energie
System Simulation and Analysis
Model development for HIL
Modélisation du procédé pour la conception de systèmes de contrôle
Robotics/Motion Control/Mechatronics
Other Application Areas
Enseignement des mathématiques
Enseignement de l’ingénierie
Enseignement secondaire et supérieur (CPGE, BTS)
Tests et évaluations
Etudiants
Modélisation financière
Recherche opérationnelle
Calcul haute performance
Physique
Webinaires en direct
Webinaires enregistrés
Agenda des évènements
Forum MaplePrimes
Blog Maplesoft
Membres Maplesoft
Maple Ambassador Program
MapleCloud
Livres blancs techniques
Bulletin électronique
Livres Maple
Math Matters
Portail des applications
Galerie de modèles MapleSim
Cas d'Etudes Utilisateur
Exploring Engineering Fundamentals
Concepts d’enseignement avec Maple
Centre d’accueil utilisateur Maplesoft
Centre de ressources pour enseignants
Centre d’assistance aux étudiants
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