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
Worksheet[ToString] - convert a XML tree data structure representing a worksheet in the specified format and return it as a Maple string
Calling Sequence
ToString(xmlTree, format=output_format)
Parameters
xmlTree
-
Maple XML tree; worksheet
format=output_format
(optional) equation; output_format can be one of "mws", "maple8_xml", or "mw" (default)
Description
The ToString(xmlTree) calling sequence formats the XML document xmlTree representing a Maple worksheet as a MWS document (stored as a Maple string).
It is assumed that the XML document that is written to a string represents a valid worksheet. (Maple performs only a surface check.)
The returned XML document is formatted without line breaking or indentation of any kind. As a result, regardless of size, the document is returned as a single line of text.
Examples
The following examples demonstrate how a Maple XML tree data structure can be converted and returned as a string.
The ToString command converts the XML tree data structure doc and returns it as a Maple string str.
The string str is parsed and converted back to an XML tree data structure doc1 by using the FromString command.
The Display command launches the worksheets. The Display command launches the string str and the XML tree doc1. For information on Display command parameters, see Worksheet[Display].
See Also
Worksheet, Worksheet[FromString], XMLTools
Download Help Document