/*
*/
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 DOM API
XmlElement order = doc.GetElementById("id2");
if (order != null)
Console.WriteLine(order.GetAttribute("shipAddress"));
}
}