Hey everyone,
I have an Xml file in which I want to compare elements;
<Students>
<Student id = "a">
<Name>*** </Name>
<Age>17 </Age>
</Student>
</Students>
<Students>
<Student id = "b">
<Name>*** </Name>
<Age>17</Age>
</Student>
</Students>
if student "a" is of the same age as "b" I want to display a message. So haw can I compare these values while reading the file. So far I've used
foreach (XmlNode node in StudentList)
{
}
to read each Xml element. Is there a way to do it without having to store them?