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[Serialize] - return a Maple expression as XML
Calling Sequence
Serialize(expr)
Parameters
expr
-
anything; expression to use
Description
The Serialize(expr) function converts Maple expressions to XML documents and formats them. The returned result shows the structure of the expression.
Note: Because XML standards are subject to change, the returned XML document structure may change. Therefore, it should not be regarded as a storage format for Maple expressions.
This function is part of the XMLTools package, and so it can be used in the form Serialize(..) 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[Serialize](..).
Examples
<SUM> <NAME>a</NAME> <NAME>b</NAME> </SUM>
<SERIES> <PROD> <INTPOS> 1 </INTPOS> <POWER> <NAME>x</NAME> <INTPOS> 0 </INTPOS> </POWER> </PROD> <PROD> <INTPOS> 1 </INTPOS> <POWER> <NAME>x</NAME> <INTPOS> 1 </INTPOS> </POWER> </PROD> <PROD> <RATIONAL> <INTPOS> 1 </INTPOS> <INTPOS> 2 </INTPOS> </RATIONAL> <POWER> <NAME>x</NAME> <INTPOS> 2 </INTPOS> </POWER> </PROD> <PROD> <RATIONAL> <INTPOS> 1 </INTPOS> <INTPOS> 6 </INTPOS> </RATIONAL> <POWER> <NAME>x</NAME> <INTPOS> 3 </INTPOS> </POWER> </PROD> <PROD> <RATIONAL> <INTPOS> 1 </INTPOS> <INTPOS> 24 </INTPOS> </RATIONAL> <POWER> <NAME>x</NAME> <INTPOS> 4 </INTPOS> </POWER> </PROD> <PROD> <RATIONAL> <INTPOS> 1 </INTPOS> <INTPOS> 120 </INTPOS> </RATIONAL> <POWER> <NAME>x</NAME> <INTPOS> 5 </INTPOS> </POWER> </PROD> <FUNCTION> <NAME> O <ATTRIBUTE> <NAME> protected <ATTRIBUTE> <NAME>protected</NAME> </ATTRIBUTE> </NAME> </ATTRIBUTE> </NAME> <EXPSEQ> <POWER> <NAME>x</NAME> <INTPOS> 6 </INTPOS> </POWER> </EXPSEQ> </FUNCTION> </SERIES>
Serialize( proc(x) 1 - 2/x end );
<PROC> <PARAMSEQ> <NAME>x</NAME> </PARAMSEQ> <LOCALSEQ/> <OPTIONSEQ/> <EXPSEQ/> <STATSEQ> <SUM> <INTPOS> 1 </INTPOS> <PROD> <POWER> <PARAM> 1 </PARAM> <INTNEG> 1 </INTNEG> </POWER> <INTNEG> 2 </INTNEG> </PROD> </SUM> </STATSEQ> <DESCRIPTIONSEQ/> <GLOBALSEQ/> <LEXICALSEQ/> <EOP> <EXPSEQ/> </EOP> </PROC>
See Also
XMLTools, XMLTools[Print]
Download Help Document