title: Read attributes values with linq
body: <p>I have an xml file that looks like the following. What I'm trying to do is to create a query that selects only the items with the attribute "Channel" and the value "Automotive".</p>
  
  <pre><code>&lt;item&gt;
        &lt;title&gt;Industries&lt;/title&gt;
        &lt;category type="Channel"&gt;Automotive&lt;/category&gt;
        &lt;category type="Type"&gt;Cars&lt;/category&gt;
        &lt;category type="Token"&gt;Article&lt;/category&gt;
        &lt;category type="SpecialToken"&gt;News&lt;/category&gt;
        &lt;guid&gt;637f0dd7-57a0-4001-8272-f0fba60feba1&lt;/guid&gt;
  &lt;/item&gt;
  </code></pre>
  
  <p>Here is my code </p>
  
  <pre><code> var feeds = (from item in doc.Descendants("item")
      where item.Element("category").Value == "Channel"  
      select new { }).ToList(); 
  </code></pre>
  
  <p>I tried using the item.attribute method but I can't get to the value within the Item, only the attribute Value of "type"</p>
  
  <p>Could somebody please help me out on this?</p>
  
  <p>Cheers,
  Chris</p>