I have a XML file like this:
<students>
<student rollNo="1" Name ="A" Grade="A"/>
<student rollNo="2" Name ="B" Grade="A"/>
<student rollNo="3" Name ="C" Grade="A"/>
<student rollNo="4" Name ="D" Grade="A"/>
</students>
I need to get Name and Grade from XML file by supplying rollNo.
You can write something like this (C# 2) :