[xquery-talk] node comparison based on qualified name
andrew.j.welch at gmail.com
Thu Jun 23 05:00:43 PDT 2011
On 23 June 2011 12:32, Kunal Chauhan <mail4ck at gmail.com> wrote:
> I have two different sequences of elements and I want to compare those two.
> How can I compare these two sequences based on their qualified name.
> attributes,content values doesn't matter.
> for example,
> let $seq1 :=
> let $seq2 :=
> let $seq3 :=
> When I compare $seq1 and $seq2 it should not return any element, but when I
> compare $seq1 and $seq3 it should return <alName>aaa</alName>
> How can I achieve this ?
The basic comparison is:
$seq1/*[not(name() = $seq3/*/name())]
More information about the talk