Maple für Professional
Maple für Akademiker
Maple für Studenten
Maple Personal Edition
Maple Player
Maple Player für iPad
MapleSim für Professional
MapleSim für Akademiker
Maple T.A. - Testen & beurteilen
Maple T.A. MAA Placement Test Suite
Möbius - Online-Courseware
Machine Design / Industrial Automation
Luft- und Raumfahrt
Fahrzeugtechnik
Robotics
Energiebranche
System Simulation and Analysis
Model development for HIL
Anlagenmodelle für den Regelungsentwurf
Robotics/Motion Control/Mechatronics
Other Application Areas
Mathematikausbildung
Technik
Allgemein- und berufsbildende Schulen
Testen und beurteilen
Studierende
Finanzmodelle
Betriebsforschung
Hochleistungsrechnen
Physik
Live-Webinare
Aufgezeichnete Webinare
Geplante Veranstaltungen
MaplePrimes
Maplesoft-Blog
Maplesoft-Mitgliedschaft
Maple Ambassador Program
MapleCloud
Technische Whitepapers
E-Mail Newsletters
Maple-Bücher
Math Matters
Anwendungs-Center
MapleSim Modell-Galerie
Anwenderberichte
Exploring Engineering Fundamentals
Lehrkonzepte mit Maple
Maplesoft Welcome-Center
Resource-Center für Lehrer
Help-Center für Studierende
XMLTools[SelectContent] - select subelements of an XML element
XMLTools[RemoveContent] - remove subelements of an XML element
XMLTools[SelectRemoveContent] - select and remove subelements of an XML element
Calling Sequence
SelectContent(p, xmlTree)
RemoveContent(p, xmlTree)
SelectRemoveContent(p, xmlTree)
Parameters
p
-
Maple procedure (or other callable expression) that evaluates to either true or false; predicate for subelements to satisfy
xmlTree
Maple XML tree; XML element
Description
The SelectContent(p, xmlTree) command returns the list of ordered subelements of the XML element xmlTree that satisfy the specified predicate p.
If no child node of the input tree satisfies the given predicate, then an empty list is returned.
The RemoveContent(p, xmlTree) command returns the list of ordered subelements of the XML element xmlTree that do not satisfy the specified predicate p.
If every child node of the input tree satisfies the given predicate, then an empty list is returned.
The SelectRemoveContent(p, xmlTree) command is equivalent to the procedure (SelectContent, RemoveContent). That is,
SelectRemoveContent( p, x ) = ( SelectContent( p, x ), RemoveContent( 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.
Note: These functions are analogous to the select, remove, and selectremove functions.
Examples
<a> <b colour = 'red'>foo</b> <c colour = 'blue'>bar</c> <d>baz</d> </a>
<b colour = 'red'>foo</b> <c colour = 'blue'>bar</c>
<d>baz</d>
See Also
remove, select, selectremove, XMLTools, XMLTools[ContentModel]
Download Help Document