Click here to Skip to main content
15,915,319 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I have a xml which contain employ information of an organization.

Using XPathQuery .. i have retrieved Empnodes form the xml.
Now to navigate each node, i have created XPathNavigator for the Empnodes .From XPathNavigator , i have created XPathNodeIterator.

Now i want to create an XMLNode object form the XPathNodeIterator.

How to get it??
Posted

see following link

Using XPathNavigator/XPathDocument


try to use google.. :)
 
Share this answer
 
v2
How about a simple foreach loop?
XmlNode parentNode = myXMLDoc.SelectSingleNode("\\root\EmployeeNode");

foreach (XmlNode xn in parentNode.Nodes)
{
     //Do something cool with the child node here.
}


Hogan
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900