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'");
上述条件不起作用!