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[FromString] - parse a Maple string containing MWS data and convert it to Maple XML tree
Calling Sequence
FromString(str, format=output_format)
Parameters
str
-
string; mws or xml string representing Maple worksheet
format=output_format
(optional) equation; output_format can be either "maple8_xml" or "mw" (default)
Description
The FromString(str) calling sequence parses the input string str, which is assumed to be a valid Maple worksheet. It then converts it to a Maple XML tree.
Errors detected by the parser in this routine are reported, but the parser does not validate the worksheet. Only errors that prevent this routine from converting the input string into an internal XML format are detected.
FromString maps automatically over its arguments, returning an expression sequence of results.
Examples
The following examples demonstrate how a string can be parsed and converted to a Maple XML tree.
The string str is parsed and converted to an XML tree data structure doc by using the FromString command.
The ToString command converts the XML tree data structure doc and returns it as a Maple string str1.
The string str1 is once again parsed and converted to an XML tree data structure by using the FromString command.
The Display command launches the worksheets. The Display command launches the string str1 and the XML tree doc1. For information on Display command parameters, see Worksheet[Display].
See Also
Worksheet, Worksheet[ToString]
Download Help Document