XmlTextReader : Xml Atrributes : XML C# Examples


C# Examples » XML » Xml Atrributes »

 

XmlTextReader









    
using  System;
using  System.Xml;

class  MainClass
{
    static  void  Main(string[]  args)
    {
        XmlTextReader  reader  =  new  XmlTextReader(@"C:\books.xml");
        
        reader.MoveToContent();
        reader.MoveToFirstAttribute();
        Console.WriteLine("First  Attribute  Value"  +reader.Value);
        Console.WriteLine("First  Attribute  Name"  +reader.Name);

    }
}
    
   
  
   




HTML code for linking to this page:

Follow Navioo On Twitter

C# Examples

 Navioo XML
» Xml Atrributes