XMLTools
Equal
test whether two XML trees are equal
Calling Sequence
Parameters
Description
Examples
Equal(xmlTree1, xmlTree2)
xmlTree1
-
Maple XML tree; XML element
xmlTree2
The Equal(xmlTree1, xmlTree2) command test whether two XML trees are the same.
The arguments must be correctly formed XML tree data structures. One of the values true and false is returned.
withXMLTools:
xmlTree1≔XMLElementa,colour=red,size=10,XMLElementb,colour=blue,text:
PrintxmlTree1
<a colour = 'red' size = '10'> <b colour = 'blue'>text</b> </a>
xmlTree2≔XMLElementa,colour=red,size=10,XMLElementb,colour=blue,text:
PrintxmlTree2
xmlTree3≔ParseString<a colour='red' size='10'><b colour='blue'>text</b></a>:
PrintxmlTree3
evalbxmlTree1=xmlTree2
true
EqualxmlTree1,xmlTree2
evalbxmlTree1=xmlTree3
false
EqualxmlTree1,xmlTree3
See Also
XMLTools[Print]
XMLTools[XMLElement]
Download Help Document