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[SelectAttributes] - select attributes of an XML element
XMLTools[RemoveAttributes] - remove attributes of an XML element
XMLTools[SelectRemoveAttributes] - select and remove attributes of an XML element
Calling Sequence
SelectAttributes(p, xmlTree)
RemoveAttributes(p, xmlTree)
SelectRemoveAttributes(p, xmlTree)
Parameters
p
-
Maple procedure (or other callable expression) that evaluates to either true or false; predicate for attributes to satisfy
xmlTree
Maple XML tree; XML element
Description
The SelectAttributes(p, xmlTree) command returns the list of ordered attributes of the XML element xmlTree that satisfy the specified predicate p. The list that is returned is a (possibly empty) list of attribute data structures.
If no attribute of the input tree satisfies the given predicate, then an empty list is returned.
The RemoveAttributes(p, xmlTree) command returns the list of ordered attributes of the XML element xmlTree that do not satisfy the specified predicate p. The list that is returned is a (possible empty) list of attribute data structures.
The SelectRemoveAttributes(p, xmlTree) command is equivalent to the procedure (SelectAttributes, RemoveAttributes). That is,
SelectRemoveAttributes( p, x ) = ( SelectAttributes( p, x ), RemoveAttributes( p, x ) )
An expression sequence of two lists is returned. Either or both lists may be empty.
For all of these functions, any arguments passed after the first two are passed to the call of the predicate without further processing. Attributes data structures are passed to the predicate.
Note: These functions are analogous to the select, remove, and selectremove functions.
Examples
<a width = '2' height = '6' bgcolour = 'blue' fgcolour = 'green'> foo <b>bar</b> </a>
width = '2' height = '6'
bgcolour = 'blue' fgcolour = 'green'
See Also
remove, select, selectremove, XMLTools, XMLTools[Attributes], XMLTools[RemoveAttribute]
Download Help Document