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