Mega Code Archive

 
Categories / C# Tutorial / XML
 

Create XPathNavigator

using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Drawing; using System.Text; using System.Windows.Forms; using System.Xml; using System.Xml.XPath;     public class MainClass     {         public static void Main()         {             XPathNavigator navigator = null;             XmlDocument doc = new XmlDocument();             doc.Load(Application.StartupPath + @"/employees.xml");             navigator = doc.CreateNavigator();             //XPathDocument doc = new XPathDocument(Application.StartupPath + @"/employees.xml");             //navigator = doc.CreateNavigator();         }     }