Assuming a document such as:
<a>
<b>TEST1</b>
<b>TEST2</b>
<b>TEST1</b>
</a>
Is there any Xquery one liner you can use to check that all values of b are unique without having to run a for-each of on the doc? So for example in the above document it would return false, whereas in the below document it would return true
<a>
<b>TEST1</b>
<b>TEST2</b>
<b>TEST3</b>
</a>