Hi, I have some XML that looks something like this:
<Root>
<Documents>
<Document id="1"/>
</Documents>
<People>
<Person id="1"/>
<Person id="2"/>
</People>
<Links>
<Link personId="1" documentId="1"/>
<Link personId="1" documentId="1"/>
<Link personId="2" documentId="1"/>
</Links>
</Root>
And I am interested in getting only the 'Link' elements that have a unique combination of 'personId's and 'documentId's, so these two links:
<Root>
<Links>
<Link personId="1" documentId="1"/>
<Link personId="2" documentId="1"/>
</Links>
</Root>
How might I go about doing that? I have found this question, though I feel mine is slightly more complex and may not apply...I presumme I am going to need to use the key() function somewhere...
Thanks in advance.