test whether two XML trees are equal - Maple Help

Online Help

All Products    Maple    MapleSim


Home : Support : Online Help : Connectivity : Web Features : XMLTools : XMLTools/Compare

XMLTools[Compare] - test whether two XML trees are equal

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:

xmlTree1:=ParseString<a><b><c d='u'/></b></a>&colon;

xmlTree2:=ParseString<a><b><c d='v'/></b></a>&colon;

l:=ComparexmlTree1&comma;xmlTree2

l:=1&comma;3&comma;1&comma;3&comma;1&comma;2&comma;1&comma;2&comma;1

(1)

opl&comma;xmlTree1&comma;opl&comma;xmlTree2

u&comma;v

(2)

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

_XML_AttrValueu&comma;_XML_AttrValuev

(3)

See Also

XMLTools, XMLTools[XMLElement]


Download Help Document

Was this information helpful?



Please add your Comment (Optional)
E-mail Address (Optional)
What is ? This question helps us to combat spam