title: Remove xmlns attribute with namespace prefix
body: <p>This question is a logical continuation of <a href="https://stackoverflow.com/questions/13613917/merge-xelement-into-xdocument-and-resolve-namespaces">this one</a> - now suppose an <code>XElement</code> contains elements in a non-default namespace:</p>
  
  <pre><code>&lt;Body xmlns="http://schemas.microsoft.com/sqlserver/reporting/2010/01/reportdefinition" xmlns:rd="http://schemas.microsoft.com/SQLServer/reporting/reportdesigner"&gt;
    &lt;ReportItems /&gt;        
    &lt;Height /&gt;
    &lt;rd:Style /&gt;
  &lt;/Body&gt;
  </code></pre>
  
  <p>I am trying to follow the same approach as suggested in the answer for my previous question, i.e. remove <code>xmlns</code> attribute, but it does not work when it's xmlns + prefix, like this <code>xmlns:xx</code>.</p>
  
  <p><strong>TL;DR version</strong></p>
  
  <p>This works:</p>
  
  <pre><code>Dim xml = &lt;Body xmlns="http://schemas.microsoft.com/SQLServer/reporting/reportdesigner"/&gt;
  xml.Attribute("xmlns").Remove()
  </code></pre>
  
  <p>This doesn't:</p>
  
  <pre><code>Dim xml = &lt;Body xmlns:rd="http://schemas.microsoft.com/SQLServer/reporting/reportdesigner"/&gt;
  xml.Attribute("xmlns:rd").Remove()
  </code></pre>
  
  <p>Getting this error:</p>
  
  <pre><code>XmlException was unhandled
  The ':' character, hexadecimal value 0x3A, cannot be included in a name.
  </code></pre>
  
  <p>How do I remove <code>xmlns:xx</code> attribute from an <code>XElement</code>?</p>