using System;
using System.IO;
using System.Xml;
public class Sample
{
public static void Main(){
XmlReader reader = XmlReader.Create("book.xml");
reader.MoveToContent();
while (reader.MoveToNextAttribute()){
if (reader.IsDefault)
Console.Write("(default attribute) ");
Console.WriteLine("{0} = {1}", reader.Name, reader.Value);
}
reader.Close();
}
}