How to search a XML document node by node

G

Guest

I have want to read a xml file node by node. How can I do it?
I am using following code to load xml file.

XmlDocument doc = new XmlDocument();
doc.Load(fileName);
 
W

W.G. Ryan MVP

XmlDocument doc = new XmlDocument();

doc.LoadXml(YourXMLStringHere);

XPathNavigator xpnav = doc.CreateNavigator();

XPathNodeIterator iterator = null;

iterator.MoveNext(); //Loop here
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top