Read XML from URL : Xml Read : XML C# Examples


C# Examples » XML » Xml Read »

 

Read XML from URL









    
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();

    }
}
    
   
  
   




HTML code for linking to this page:

Follow Navioo On Twitter

C# Examples

 Navioo XML
» Xml Read