/*
*/
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 XPathNavigator API
XPathNavigator nav = doc.CreateNavigator();
if (nav.MoveToId("id2"))
Console.WriteLine(nav.GetAttribute("shipAddress", ""));
}
}