public static void Main()
<book genre='autobiography' publicationdate='1981-03-22' ISBN='1-861003-11-0'>
<title>The Autobiography of Benjamin Franklin</title>
<first-name>Benjamin</first-name>
<last-name>Franklin</last-name>
using (XmlReader reader = XmlReader.Create(new StringReader(xmlString)))
reader.ReadToFollowing("book");
reader.MoveToFirstAttribute();
string genre = reader.Value;
Console.WriteLine("The genre value: " + genre);
reader.ReadToFollowing("title");
Console.WriteLine("Content of the title element: " + reader.ReadElementContentAsString());