title: Cannot query XML document using XDocument and get desired results
body: <p>I'm trying to use the Bing maps API, which returns an XML document. The document (simplified but keeping structure) is</p>
  
  <pre><code>&lt;Response xmlns:xsd="http://www.w3.org/2001/XMLSchema"
            xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
            xmlns="http://schemas.microsoft.com/search/local/ws/rest/v1"&gt;
      &lt;StatusCode&gt;
      200
      &lt;/StatusCode&gt;
      &lt;ResourceSets&gt;
        &lt;ResourceSet&gt;
         &lt;Resources&gt;
          &lt;TrafficIncident&gt;
           &lt;Severity&gt;
            Minor
           &lt;/Severity&gt;
           &lt;RoadClosed&gt;
            false
           &lt;/RoadClosed&gt;
          &lt;/TrafficIncident&gt;
         &lt;/Resources&gt;
        &lt;/ResourceSet&gt;
       &lt;/ResourceSets&gt;
  &lt;/Response&gt;
  </code></pre>
  
  <p>In this case, there is only 1 traffic issue but there could be many.</p>
  
  <p>I'm trying to extract if the road is closed and the severity</p>
  
  <p>The XML is stored in a <code>xd</code> object (of type <code>XDocuement</code>)</p>
  
  <p>The following works fine (no error but returns all the elements)</p>
  
  <pre><code>var allNodes = (from x in xd.Descendants()
                  select x).ToList();
  </code></pre>
  
  <p>but if I add an element name then it returns a list with 0 items</p>
  
  <pre><code>var allNodes = (from x in xd.Descendants("Resources")
                  select x).ToList(); 
  </code></pre>
  
  <p>I thought the above code is saying:</p>
  
  <blockquote>
    <p>from xd, grab all of the descendants of the "Resources" element</p>
  </blockquote>
  
  <p>If my understanding is correct, why does it return 0 results</p>