title: Remove namespace from generated XML in .NET
body: <blockquote>
    <p><strong>Possible Duplicate:</strong><br>
    <a href="https://stackoverflow.com/questions/760262/xmlserializer-remove-unnecessary-xsi-and-xsd-namespaces">XmlSerializer: remove unnecessary xsi and xsd namespaces</a>  </p>
  </blockquote>
  
  
  
  <p>I'm generating some XML using XMLSerializer and a class marked up with attributes. This XML is sent to a REST web service.</p>
  
  <p>It generates the following XML:</p>
  
  <pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt;
  &lt;person xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
   xmlns:xsd="http://www.w3.org/2001/XMLSchema"&gt;
    &lt;first-name&gt;API&lt;/first-name&gt;
    &lt;last-name&gt;TestPersonDeleteMe&lt;/last-name&gt;
    &lt;title&gt;Delete me&lt;/title&gt;
  &lt;/person&gt;
  </code></pre>
  
  <p>All would be well, except the web service I'm using doesn't understand the schema stuff and throws a 500 error.</p>
  
  <p>Is there a way to stop XmlSerializer adding <code>'xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema"'</code> to the <em>person</em> tag?</p>