title: Is there a way to retrieve elements using only local names in a Linq-to-XML query?
body: <p>Lets assume we have this xml: </p>
  
  <pre><code>&lt;?xml version="1.0" encoding="UTF-8"?&gt;
  &lt;tns:RegistryResponse status="urn:oasis:names:tc:ebxml-regrep:ResponseStatusType:Failure"
      xmlns:tns="urn:oasis:names:tc:ebxml-regrep:xsd:rs:3.0"
      xmlns:rim="urn:oasis:names:tc:ebxml-regrep:xsd:rim:3.0"&gt;
      &lt;tns:RegistryErrorList highestSeverity=""&gt;
          &lt;tns:RegistryError codeContext="XDSInvalidRequest - DcoumentId is not unique."
              errorCode="XDSInvalidRequest"
              severity="urn:oasis:names:tc:ebxml-regrep:ErrorSeverityType:Error"/&gt;
      &lt;/tns:RegistryErrorList&gt;
   &lt;/tns:RegistryResponse&gt;
  </code></pre>
  
  <p>To retrieve RegistryErrorList element, we can do   </p>
  
  <pre><code>XDocument doc = XDocument.Load(&lt;path to xml file&gt;);
  XNamespace ns = "urn:oasis:names:tc:ebxml-regrep:xsd:rs:3.0";
  XElement errorList = doc.Root.Elements( ns + "RegistryErrorList").SingleOrDefault();
  </code></pre>
  
  <p>but not like this</p>
  
  <pre><code>XElement errorList = doc.Root.Elements("RegistryErrorList").SingleOrDefault();
  </code></pre>
  
  <p>Is there a way to do the query without the namespace of the element. Basicly is there something conceptially 
  similiar to using local-name() in XPath (i.e. //*[local-name()='RegistryErrorList'])</p>