Load the XML into XPathDocument into your code and use XPathNavigator to store the request. Result XPathNavigator.Select () is an iterator that returns the selected nodes.
Example (using System.XML and System.Xml.XPath):
XPathDocument doc = new XPathDocument(@"c:\filepath\doc.xml");
XPathNavigator nav = doc.CreateNavigator();
XPathNodeIterator iter = nav.Select("/xpath/query/here");
while(iter->MoveNext)
{
}
source
share