using System; using System.IO; using System.Xml; class MainClass { static void Main(string[] args) { string localURL = "http:\\www.yoursite.com\\Test.xml"; XmlTextReader myXmlURLreader = null; myXmlURLreader = new XmlTextReader (localURL); while (myXmlURLreader.Read()) { //TODO - } if (myXmlURLreader != null) myXmlURLreader.Close(); } }