title: How to remove namespace from an XML Element using C#
body: <p>I have an XML where I have a name space <code>_spreadSheetNameSapce</code>. In my code I have to add a new element with attribute associated with the name the space and I am doing it like the following</p>
  
  <pre><code>XElement customHeading = new XElement("Row",
      new XAttribute(_spreadSheetNameSapce + "AutoFitHeight", "0"));
  </code></pre>
  
  <p>It creates the <code>XElement</code> properly but it does insert <code>xmlns=""</code> entry also in the same element. I do not want that element to be created. How can I create the <code>XElement</code> without the empty name space or how can I remove the namespace after the element is created?</p>