You can load your xml file to XmlDocument (or XPathDocumen if you don't
plane to edit xml),
and then you can navigate through XmlDocument node by node in old fashion
way to create XPathNavigator and move it through document (on each button
click).
If you don't need actual nodes but only values of these nodes you can avoid
caching all of them by reading xml file with XmlTextReader and preserving
only required data (in ArrayList for example).
So you have plenty of options and which is better depend on your scenario.
Sergey
--
This posting is provided "AS IS" with no warranties, and confers no rights.
"Dinesh_GR" <di***********@ hotmail.com> wrote in message
news:d7******** *************** ***@posting.goo gle.com...
Hi all,
I have many parent tags and many child tags under the respective
parent.. in an XML file.
On the click of a button the application should pick up the one parent
and the corresponding child and bind it to a grid.
Like that it goes on for the next parent and the related child for the
next button click.
Pls give me an idea of how to do this. If possible do help me with the
code.
Thanks in advance,
Dinesh.