Compare - Maple Help

Online Help

All Products    Maple    MapleSim


XMLTools

  

Compare

  

test whether two XML trees are equal

 

Calling Sequence

Parameters

Description

Examples

Calling Sequence

Compare(xmlTree1, xmlTree2)

Parameters

xmlTree1

-

Maple XML tree; XML element

xmlTree2

-

Maple XML tree; XML element

Description

• 

The Compare(xmlTree1, xmlTree2) command returns a sub-operand l such that opl,xmlTree1opl,xmlTree2.

• 

The arguments must be correctly formed XML tree data structures.

Examples

withXMLTools:

xmlTree1ParseString<a><b><c d='u'/></b></a>&colon;

xmlTree2ParseString<a><b><c d='v'/></b></a>&colon;

lComparexmlTree1&comma;xmlTree2

l1&comma;3&comma;1&comma;3&comma;1&comma;2&comma;1&comma;2&comma;1

(1)

opl&comma;xmlTree1,opl&comma;xmlTree2

u,v

(2)

opl1..2&comma;xmlTree1,opl1..2&comma;xmlTree2

_XML_AttrValueu,_XML_AttrValuev

(3)

See Also

XMLTools

XMLTools[XMLElement]