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[CleanXML] - remove whitespace and comments from an XML tree
Calling Sequence
CleanXML(xmlTree)
Parameters
xmlTree
-
Maple XML tree; XML element
Description
The CleanXML(xmlTree) command removes content consisting only of whitespace, as well as XML comment structures from an XML tree data structure. The return value is a cleaned XML tree data structure.
Strictly speaking, whitespace is significant in XML, but for some important applications (such as MathML and HTML) it is not.
Text content that is not completely whitespace is retained, but whitespace is canonicalized by removing all leading and trailing whitespace, and by collapsing internal sequences of whitespace characters to a single space character.
Whitespace in attribute values is also canonicalized.
For applications in which whitespace is not significant, and for which XML comments are not wanted, the XML tree data structure returned by this routine should have the same information as the input tree, but may be significantly reduced in size.
Examples
See Also
XMLTools
Download Help Document