But i cant figure out how to read only the name of the autor.
Very basic xml question.
I have an ini that looks like this:
Pride And Prejudice1 the autors name 19.95
1 Answer
Know the answer? Post it. Somebody with the same question will find it here.

Kevin Aung46 reputationPosted Jan 6, 2011, 4:22 PM EST
using System;
using System.Xml.Linq;
using System.Xml.Xpath;
static void Main()
{
string xmlPath = @"C:\temp\books.xml";
string bookVal = "";
XDocument xDoc = XDocument.Load(xmlPath);
XElement xAuthor = xDoc.XPathSelectElement("book/author");
if (xAuthor != null)
bookVal = xAuthor.Value;
}