title: XDocument or XElement parsing of XML element containing namespaces
body: <p>I am try to read the following string, captured from a log4net UdpAppender.</p>
  
  <pre><code>&lt;log4net:event logger="TestingTransmitter.Program" 
                 timestamp="2009-08-02T17:50:18.928+01:00" 
                 level="ERROR" 
                 thread="9" 
                 domain="TestingTransmitter.vshost.exe" 
                 username="domain\user"&gt;
      &lt;log4net:message&gt;Log entry 103&lt;/log4net:message&gt;
      &lt;log4net:properties&gt;
          &lt;log4net:data name="log4net:HostName" value="machine" /&gt;
      &lt;/log4net:properties&gt;
  &lt;/log4net:event&gt;
  </code></pre>
  
  <p>When trying to XElement.Parse or XDocument.Parse the content, it throws an exception:</p>
  
  <blockquote>
    <p>'log4net' is an undeclared namespace.
    Line 1, position 2.</p>
  </blockquote>
  
  <p>I know I can search and replace "log4net:" in the original string and remove it, allowing me to parse the XML successfully, but is there a better way?  This is the complete data captured (reformatted to allow reading), there are no xml namespace declarations made or removed..</p>