我有這棵樹:的XPath - 選擇字符串
<Events>
<Properties>
<Property Descriptor=100>1378314022</Property>
<Property Descriptor=200>ABC1234</Property>
</Properties>
<Properties>
<Property Descriptor=100>1378314023</Property>
<Property Descriptor=200>ABC1234</Property>
</Properties>
<Properties>
<Property Descriptor=100>1378314024</Property>
<Property Descriptor=200>ABC1234</Property>
</Properties>
<Properties>
<Property Descriptor=100>1378314022</Property>
<Property Descriptor=200>123456</Property>
</Properties>
<Properties>
<Property Descriptor=100>1378314023</Property>
<Property Descriptor=200>123456</Property>
</Properties>
<Properties>
<Property Descriptor=100>1378314024</Property>
<Property Descriptor=200>123456</Property>
</Properties>
</Events>
如何選擇,沒有重複<Descriptor=200>
值?例如在這種情況下,我只需要選擇ABC1234
和123456
一次。
更新:我需要迭代在Events
級別,然後選擇不同的字符串。
你想在SQL Server或其他東西中實現這個結果? –