title: Select nodes Linq to Xml C#
body: <p>XML file format:</p>
  
  <pre><code>&lt;?xml version="1.0" encoding="UTF-8"?&gt;
      &lt;urlset&gt;    
          &lt;url&gt;
              &lt;loc&gt;element1&lt;/loc&gt;
              &lt;changefreq&gt;daily&lt;/changefreq&gt;
              &lt;priority&gt;0.2&lt;/priority&gt;
          &lt;/url&gt;
          &lt;url&gt;
              &lt;loc&gt;element2&lt;/loc&gt;
              &lt;changefreq&gt;daily&lt;/changefreq&gt;
              &lt;priority&gt;0.2&lt;/priority&gt;
          &lt;/url&gt;
      &lt;urlset&gt;
  </code></pre>
  
  <p>I want to select all "loc" nodes (element1, element2), but this not work!!!</p>
  
  <pre><code> foreach (XElement item in document.Elements("url").Descendants("loc")) // Change into what?
   {
        urlList.Add(item.Value);
   }
  </code></pre>