XMLTools
Compare
test whether two XML trees are equal
Calling Sequence
Parameters
Description
Examples
Compare(xmlTree1, xmlTree2)
xmlTree1
-
Maple XML tree; XML element
xmlTree2
The Compare(xmlTree1, xmlTree2) command returns a sub-operand l such that op⁡l,xmlTree1≠op⁡l,xmlTree2.
The arguments must be correctly formed XML tree data structures.
with⁡XMLTools:
xmlTree1≔ParseString⁡<a><b><c d='u'/></b></a>:
xmlTree2≔ParseString⁡<a><b><c d='v'/></b></a>:
l≔Compare⁡xmlTree1,xmlTree2
l≔1,3,1,3,1,2,1,2,1
op⁡l,xmlTree1,op⁡l,xmlTree2
u,v
op⁡l1..−2,xmlTree1,op⁡l1..−2,xmlTree2
_XML_AttrValue⁡u,_XML_AttrValue⁡v
See Also
XMLTools[XMLElement]
Download Help Document