What I tried to say in the title is:
Given a bit of XML in which I know a particular element appears only once, is it possible using a single XPath query to select a node-set that contains that element twice?
I understand there's a "union" operator (|) but that's basically a logical-OR, right? In SQL terms I'm looking then for the equivalent of a "union all".
E.g. Given the XML fragment...
<toplevel>
<ElementIWant>
<SomeSubElement1>specific data</SomeSubElement1>
<SomeSubElement2>specific data 2</SomeSubElement2>
</ElementIWant>
</toplevel>
...is there a query that will get me a result set equivalent to...
<ElementIWant>
...identical content...
</ElementIWant>
<ElementIWant>
...identical content...
</ElementIWant>
I haven't found anything that makes me think it can be done - but that's why I'm asking...