.NET and XML
.NET and XML Contents
Summary How to Read a XML from a URL with the XmlTextReader?
Sometimes you have the XML on another server and need to load it from there instead from a local server. For this purpose you can use the XmlTextReader and pass the URL to the constructor. After that you can pass the XmlTextReader object to a XmlDocument or you can read it directly with the XmlTextReader. The following example reads from a rss file from my blog. A rss is nothing than a XML file with pre-defined tags.
Output:
Sonu Kapoor's WebLog
Partners
Dream.In.Code dotNet Slackers dotNet Spider Your HTML Source VisualBuilder.com DevGuru Planet Source Code ZVON.ORG Web Design ASPAlliance XML Pitstop Scripts
The Spot 4 SAP Bitshop Web Hosting