title: XDocument reading child elements
body: <p>I've just started using Linq to XML with C#. I have an XML file containing information about books.</p>
  
  <p>The XML file has this structure:</p>
  
  <pre><code>&lt;?xml version="1.0"?&gt;
  &lt;catalog&gt;
     &lt;book id="bk112"&gt;
        &lt;author&gt;Galos, Mike&lt;/author&gt;
        &lt;title&gt;Visual Studio 7: A Comprehensive Guide&lt;/title&gt;
        &lt;genre&gt;Computer&lt;/genre&gt;
        &lt;price&gt;49.95&lt;/price&gt;
        &lt;publish_date&gt;2001-04-16&lt;/publish_date&gt;
        &lt;description&gt;Microsoft Visual Studio 7 is explored in depth,
        looking at how Visual Basic, Visual C++, C#, and ASP+ are 
        integrated into a comprehensive development 
        environment.&lt;/description&gt;
     &lt;/book&gt;
  &lt;/catalog&gt;
  </code></pre>
  
  <p>I've managed to write code that lets me get a list of the authors and a list of books from the XML file:</p>
  
  <pre><code>public List&lt;string&gt; GetBooks()
  {
      XDocument document = XDocument.Load(XMLFileLocation);
  
      var query = from t in document.Descendants("title")
                  select t.Value;
  
      return query.ToList&lt;string&gt;();
  }
  </code></pre>
  
  <p>However, I don't know how to proceed with making a method that would let me get information about a specific book. For example:</p>
  
  <pre><code>GetBookAuthor("MyBook");
  </code></pre>
  
  <p>How would I go about this?</p>