The deep-equal() function performs a deep comparison between two sequences:
the items in corresponding positions in each sequence must be deep-equal to each other
if the items are nodes, they are compared by examining their children and attributes recursively
Argument | Data Type | Meaning |
---|---|---|
sequence- 1 | item() * | The first operand of the comparison |
sequence-2 | item() * | The second operand of the comparison |
collation (optional) | xs:string | The collation to be used for comparing strings (at any depth) |
Result | xs:boolean | true if the sequences are deep-equal, otherwise false |