title: Get single XML Attribute Value
body: <p>Given the following XML -</p>
  
  <pre><code>&lt;Response&gt;
    &lt;Item name="ItemA" /&gt;
  &lt;/Response&gt;
  </code></pre>
  
  <p>How do I get the value of the name attribute?</p>
  
  <p>I have tried several ways with no luck, here was the last try-
  (Note that writing the contents of 'xml' to the console displayed the above XML)</p>
  
  <pre><code>Dim doc As XDocument = XDocument.Load(xml)
  Dim result = From x In doc.Descendants("Item") Select x.Attribute("Name").Value
  Console.WriteLine(result)
  </code></pre>
  
  <p>Results in output of: "System.Linq.Enumerable.WhereSelectEnumerableIterator[Of System.Xml.Linq.XElement, String]"</p>
  
  <p>Thanks,</p>