XmlTextReader : XmlTextReader : XML C# Examples


C# Examples » XML » XmlTextReader »

 

XmlTextReader









    
using  System;
using  System.Xml;

class  MainClass
{
        static  void  Main(string[]  args)
        {
        XmlTextReader  reader  =  new  XmlTextReader(@"C:\books.xml");

        if  (reader.Read())
        {
            Console.WriteLine(reader.Name);
            reader.MoveToContent();  
            Console.WriteLine(reader.Name);
        }
        }
}
    
   
  
   




HTML code for linking to this page:

Follow Navioo On Twitter

C# Examples

 Navioo XML
» XmlTextReader