title: Using the XElement.Elements method, can I find elements with wildcard namespace but the same name?
body: <p>Trying to do a simple parse of an XML document. What's the easiest way to pull out the two PropertyGroups below?</p>
  
  <pre><code>&lt;Project ToolsVersion="4.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003"&gt;
    &lt;PropertyGroup xmlns="http://schemas.microsoft.com/developer/msbuild/2003"&gt;
       1
    &lt;/PropertyGroup&gt;
    &lt;PropertyGroup xmlns="http://schemas.microsoft.com/developer/msbuild/2003"&gt;
       2
    &lt;/PropertyGroup&gt;
  &lt;/Project&gt;
  </code></pre>
  
  <p>I have been trying to use XElement.Elements(XName) but to do so I need to prefix PropertyGroup with the xmlns. The issue is that I don't care about the name space and if it changes in future I would still like all PropertyGroups to be retrieved.</p>
  
  <pre><code> var xml = XElement.Load(fileNameWithPath);
   var nameSpace = xml.GetDefaultNamespace();
  
   var propertyGroups= xml.Elements(nameSpace + "PropertyGroup");
  </code></pre>
  
  <p>Can you improve on this code such that I don't need to prepend with nameSpace? I know I can essentially just reimplement the Elements method but I was hoping there was some way to pass a wildcard namespace?</p>
  
  <p>Thanks,</p>
  
  <p>Gavin</p>