title: How to get attribute in the XDocument object
body: <p>I have this xml</p>
  
  <pre><code>&lt;config&gt;
      &lt;audio first="true" second="false" third="true" /&gt;
  &lt;/config&gt;
  </code></pre>
  
  <p>I want my code to able to do something like this</p>
  
  <pre><code>if (xdoc.getAttr("first")=="true")
      Console.Write("first is true");
  </code></pre>
  
  <p>How do I do this with LINQ XDocument?
  What I have so far is the XDocument Object loaded with that xml string. </p>