3
選擇不同的價值觀,我有以下XML文件XPath來從XML文件
<people>
<person>
<name>Diana B. Aust</name>
<address>8325 Meadow Rd</address>
<city>Dallas, TX</city>
</person>
<person>
<name>Diana C. Aust</name>
<address>8325 Meadow Rd</address>
<city>Dallas, TX</city>
</person>
<person>
<name>Acelia T. Peguero</name>
<address>59 Terry Ave</address>
<city>Amityville, NY</city>
</person>
<person>
<name>Acelia U. Peguero</name>
<address>58 Terry Ave</address>
<city>Amityville, NY</city>
</person>
</people>
我要選擇基於獨特地址+城市組合的所有人員。我如何使用XPath查詢來做到這一點?正確的查詢應該返回節點#1,#3和#4。
XSLT是一種選擇? – 2012-01-18 16:58:30