0
我試圖尋找一個XML節點:ASP.NET C#搜索XML節點
<Countries>
<Country FullName="AFRIQUE DU SUD" Code="ZA" IsOut="1" />
<Country FullName="ALLEMAGNE" Code="DE" IsOut="0" />
</Countries>
選擇COUNTRYCODE的基礎上只:
xmlDoc.SelectSingleNode("//Countries/Country/@[Code='ZA']");
我怎麼也適用條件,以便我可以檢查CountryCode AND IsOut = 1?
xmlDoc.SelectSingleNode("//Countries/Country/@[Code='ZA',@IsOut='1'");
上述條件不起作用!