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 opl,xmlTree1≠opl,xmlTree2.
The arguments must be correctly formed XML tree data structures.
withXMLTools:
xmlTree1≔ParseString<a><b><c d='u'/></b></a>:
xmlTree2≔ParseString<a><b><c d='v'/></b></a>:
l≔ComparexmlTree1,xmlTree2
l≔1,3,1,3,1,2,1,2,1
opl,xmlTree1,opl,xmlTree2
u,v
opl1..−2,xmlTree1,opl1..−2,xmlTree2
_XML_AttrValueu,_XML_AttrValuev
See Also
XMLTools[XMLElement]
Download Help Document