| Author: Danasegarane.A 20 Aug 2008 | Member Level: Diamond | Rating: Points: 1 |
Try this one
using System; using System.IO; using System.Xml;
namespace Client.Chapter_22___XML { public class ReadXMLFromURL { static void Main(string[] args) { string localURL = "http:\\somehost\\Test.xml"; XmlTextReader myXmlURLreader = null; myXmlURLreader = new XmlTextReader (localURL);
while (myXmlURLreader.Read()) { //TODO -
} if (myXmlURLreader != null) myXmlURLreader.Close();
} } }
Source : http://www.java2s.com/Code/CSharp/XML/ReadXMLFromURL.htm
Hope this helps
Dana
|