title: Getting collection of elements from XML
body: <p>I have the following XML:</p>
  
  <pre><code>&lt;?xml version="1.0" encoding="UTF-8"?&gt;
  &lt;feed xmlns="http://www.w3.org/2005/Atom"&gt;
     &lt;author&gt;
        &lt;name /&gt;
     &lt;/author&gt;
     &lt;title&gt;Publishing Point Collection&lt;/title&gt;
     &lt;updated&gt;2013-01-14T15:58:44.589Z&lt;/updated&gt;
     &lt;entry&gt;
        &lt;id&gt;http://example.com:80/test filename.isml/settings&lt;/id&gt;
        &lt;title&gt;Test Title&lt;/title&gt;
        &lt;updated&gt;2013-01-14T15:47:15Z&lt;/updated&gt;
        &lt;link href="http://example.com:80/test filename.isml/settings" rel="related" type="application/atom+xml" title="Settings" /&gt;
        &lt;link href="http://example.com:80/test filename.isml/state" rel="related" type="application/atom+xml" title="State" /&gt;
        &lt;link href="http://example.com:80/test filename.isml/statistics" rel="related" type="application/atom+xml" title="Statistics" /&gt;
     &lt;/entry&gt;
  &lt;/feed&gt;
  </code></pre>
  
  <p>I'm loading the document by doing:</p>
  
  <pre><code>//xmlContent is the XML shown above.
  XDocument publishingDocument = XDocument.Parse(xmlContent);
  </code></pre>
  
  <p>I'm trying to get all of the link elements (specifically the href attribute, but, just the elements for now).  But, anytime I specify an XName I never get any results.  I've tried:</p>
  
  <pre><code>var data = publishingDocument.Elements("entry");
  var data = publishingDocument.Elements("link").Attributes("href");
  var data = publishingDocument.Root.Elements("entry");
  </code></pre>
  
  <p>None of these return any data.  I must be missing something very simple.</p>