/*
*/
using System;
using System.Xml;
using System.IO;
using System.Text;
using System.Xml.XPath;
class MainClass{
public static void Main(string[] args){
XmlDocument doc = new XmlDocument();
doc.Load("d:/orders.xml");
//Fast select by ID using XPath
XPathNodeIterator ni = nav.Select("id('id2')");
if (ni.MoveNext())
Console.WriteLine(ni.Current.GetAttribute("shipAddress", ""));
}
}