我已經follwoing XML實例 -XPath表達式爲一個表達式搜索多個標籤
<World>
<Continents>
<Continent>America</Continent>
<Cities>
<Country>USA</Country>
<City>New York</City>
</Cities>
<Description>Newyork is a nice city</Description>
<Cities>
<Country>USA</Country>
<City>Philadelphia</City>
</Cities>
<Description>Philadelphia is a nice city</Description>
<Cities>
<Country>USA</Country>
<City>New Orleans</City>
</Cities>
<Description>New Orleans is a nice city</Description>
</Continents>
<Continents>
<Continent>Asia</Continent>
<Cities>
<Country>India</Country>
<City>Mumbai</City>
</Cities>
<Description>Mumbai is a nice city</Description>
<Cities>
<Country>India</Country>
<City>New Delhi</City>
</Cities>
<Description>New Delhi is a nice city</Description>
<Cities>
<Country>India</Country>
<City>Kolkata</City>
</Cities>
<Description>Kolkata is a nice city</Description>
<Cities>
<Country>Japan</Country>
<City>Tokyo</City>
</Cities>
<Description>Tokyo is a nice city</Description>
</Continents>
</World>
我想列出以下條件描述 -
Country="India" OR City="New York"
Continent="Asia" OR Country="Japan"
請填寫您的問題標題並告訴我們您已經嘗試了什麼。如果你還沒有嘗試過任何東西,請嘗試一下。 – BoltClock 2012-03-01 06:37:12
另請在再次發佈之前閱讀[常見問題]和[問]。 – 2012-03-01 06:39:20