To read from an XML file : Xml Read : XML C# Examples


C# Examples » XML » Xml Read »

 

To read from an XML file









    
using  System;
using  System.IO;
using  System.Xml;

class  MainClass
{
    static  void  Main(string[]  args)
    {
        XmlTextReader  reader  =  new  XmlTextReader("Sample.xml");

        //  Read  the  File
        while  (reader.Read())
        {
            
        }

        if  (reader  !=  null)
            reader.Close();
    }
}
    
   
  
   




HTML code for linking to this page:

Follow Navioo On Twitter

C# Examples

 Navioo XML
» Xml Read