How can i create if statements blocks based on the value of id (XML element)
string filepath = Server.MapPath("XMLFile2.xml");
XmlDocument xdoc1 = new XmlDocument();
xdoc1.Load(filepath);
XmlNode root = xdoc1.DocumentElement;
XmlNode idNode = root.SelectSingleNode("/students/student/id");
if (idNode.Value == 1.ToString()){my code}
im afraid that this code selects the first node in the file,,, or this there another way i can select the node based on its id value????
You can use
LINQ2XMLOR