XPath "Select Unique"

EDN Admin

Well-known member
Joined
Aug 7, 2010
Messages
12,794
Location
In the Machine
Given XML like this...
<stuff>
  <thing id="1" result="true"/>
  <thing id="2" result="true"/>
  <thing id="3" result="false"/>
  <thing id="4" result="false"/>
  <thing id="5" result="error"/>
</stuff>
Is there an XPath statement that will select only *unique* "@result" samples?  For example, given the above, Id like to have "thing" results that consist only of id 1, 3 and 5, because id 2 and 4 are duplicate result types.  Anybody?
<p align=left><font face=Arial size=2></font> 

View the full article
 
Back
Top