BizTalk Utilities CV ,   Jobs ,   Code library
 
Home Page


Add/Edit your code items
Search the code library
Browse for the code library


.NET and XML
How to auto-increment an unique ID in XML with XmlTextReader?
How to read Nodes with XmlNodeReader?
How to Get the Attribute Value with XmlNodeReader and GetAttribute?
How to skip child nodes with XmlNodeReader and Skip?
How to convert the return value from XML with XmlConvert and ToInt32?
What is the 'pull model'?
What is EXSLT.NET?
What is ADO.NET?
How to create a ""hello world"" XML WebService in Visual Studio .NET?
Accessing and Manipulating XML Data in Microsoft .NET Framework
Developing Multi-Threaded .NET Applications


 
 

<< XSLT 


By Sonu Kapoor
First Posted 02/20/2005
Times viewed 213

How to Read a XML from a URL with the XmlTextReader?


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

Additional information


Rate this article on a scale of 1 to 10 (0 votes, average 0)

Your vote :  

<< XSLT 





Leave a comment for this article
Your name
Your email (optional)
Your comment
Optional: Upload an attachment
Enter the code shown:

 
 

    Email TopXML