title: remove xmlns attribute from xml in wcf restful response
body: <p>hi i am a beginner in WCF  ,</p>
  
  <p>In WCF webservice using POST method with request format JSON, requirement is how to return a success result in plain XML like... </p>
  
  <pre><code>&lt;result&gt;&lt;respcode&gt;err000&lt;/respcode&gt;&lt;respmsg&gt;success&lt;/respmsg&gt;&lt;/result&gt;
  </code></pre>
  
  <p>If create XML in string and return in function the result showing below.</p>
  
  <pre><code>&lt;result&gt;&lt;respcode&gt;err000&lt;\/respcode&gt;&lt;respmsg&gt;success&lt;\/respmsg&gt;&lt;\/result&gt;
  </code></pre>
  
  <p>I have added datacontract and return result in response the result comes with below xml tag.</p>
  
  <pre><code>&lt;result xmlns="http://schemas.datacontract.org/2004/07/pacehfcltvr" xmlns:i="http://www.w3.org/2001/XMLSchema-instance"&gt;
  &lt;respcode&gt;err000&lt;/respcode&gt;
  &lt;respmsg&gt;success&lt;/respmsg&gt;
  &lt;/result&gt;
  </code></pre>
  
  <p>Is there any way to remove xmlns="http://....... and get<code>&lt;result&gt;...&lt;/result&gt;</code> only or how to achieve this ?</p>
  
  <p>Thanks.</p>