title: how to remove namespace from XML root element?
body: <p>is there a simple way to remove the namespace from the XML root element. I have tried with</p>
  
  <pre><code>[XmlRootAttribute("MCP", Namespace = "", IsNullable = false)]    
  </code></pre>
  
  <p>on the serializable class. But no use. still getting the same result.</p>
  
  <h1>sample class</h1>
  
  <pre><code>[Serializable]
  [XmlRootAttribute("MCP", Namespace = "", IsNullable = false)]    
  public class BINDRequest
  {
      public BINDRequest()
      {
  
      }
      [XmlAttribute]
      public string CLIENT_REQUEST_ID { get; set; }
  
      public BINDRequestBody BIND { get; set; }
  
  }
  </code></pre>
  
  <h1>result xml</h1>
  
  <pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt;
  &lt;MCP xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" CLIENT_REQUEST_ID="1"&gt;
    &lt;BIND CLIENT_ID="test" PASSWORD="test" /&gt;
  &lt;/MCP&gt;
  </code></pre>
  
  <p>i don't understand then whats the use of specifying namsespace in XmlRootAttribute??</p>