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[Attributes] - return a list of the attributes of an XML element
XMLTools[AttributeCount] - count the number of attributes in an XML element
XMLTools[AttributeNames] - retrieve the names of all attributes present in an XML element
XMLTools[AttributeTable] - construct a table of all attributes present in an XML element
Calling Sequence
Attributes(xmlTree)
AttributeCount(xmlTree)
AttributeNames(xmlTree)
AttributeTable(xmlTree)
Parameters
xmlTree
-
Maple XML tree; XML element
Description
The Attributes(xmlTree) command returns the attributes of the XML element xmlTree as a list of equations. The left side of each equation represents the name of the attribute, and the right side represents the attribute's value. The attribute equations in the list appear in the same order that they appear in in the XML element.
If no attributes are found, an empty list is returned.
The AttributeCount(xmlTree) command returns the number of attributes in the XML element xmlTree. This number is always a non-negative integer.
Attributes of subelements are not included in the count that is returned.
The AttributeNames(xmlTree) command returns a list of the names of the attributes present in the XML element xmlTree.
The AttributesTable(xmlTree) command takes an XML element tree structure as input and returns a table containing the attributes in the element. The attributes found in an element can be stored in a table and indexed by the attribute name by using this command.
Examples
<a colour = 'red' size = '10'> <b colour = 'blue'>text</b> </a>
colour = 'red' size = '10'
See Also
XMLTools, XMLTools[AttrCont], XMLTools[HasAttribute], XMLTools[XMLElement]
Download Help Document