Monday, May 11, 2009

Retrieve Xml Node based on two or more attribute condition

xml file:
---------


yyy



To select the node based on two attribute condition

XmlDocument xmlDoc=new XmlDocument();
XmlNode xm=xmlDoc.selectSingleNode("root/level[@id=1 and name='xxx']/level");

No comments: