title: Remove xml:space="preserve" of XML file using C#
body: <p>I used this code to export to XML file from DataTable:</p>
  
  <pre><code>dt1 = TNET2_POHeadService.TNET2_POHead_GetByPO_NoRaw(PO_No);
                  dt2 = TNET2_PODetailsService.TNET2_PODetails_GetByPO_NoRaw(PO_No);
                  ds.Tables.Add(dt1);
                  ds.Tables[0].TableName = "TNET2_POHead";
                  ds.Tables.Add(dt2);
                  ds.Tables[1].TableName = "TNET2_PODetails";
                  saveFileDialog1.ShowDialog();
  
                  ds.WriteXml(saveFileDialog1.FileName);
  </code></pre>
  
  <p>Everything worked fine but :</p>
  
  <pre><code>&lt;ContractNo&gt;P1717-198905-003(01)&lt;/ContractNo&gt;
  &lt;KP_No xml:space="preserve"&gt;             &lt;/KP_No&gt;
  &lt;SettlementRoute1&gt;TENTAC SUZHOU&lt;/SettlementRoute1&gt;
  </code></pre>
  
  <p>KP_No tag is blank value. I want to remove xml:space="preserve" of the XML export file. How to do that?</p>