title: Remove spaces and line breaks of a xml file
body: <p>I receive from a webservice a xml file but it comes with line breaks and spaces between the tags, and i need to remove them and put the xml in a string in a single line.
  I already tried with TXMLDocument, but i only i could only replace the spaces for a tab.</p>
  
  <p>Exemple of xml:</p>
  
  <pre><code>&lt;CompNfse xmlns="http://www.sistema.com.br/Nfse/arquivos/nfse_3.xsd"&gt;'#$D#$A'      &lt;Nfse versao=""&gt;'#$D#$A'        &lt;InfNfse Id=" 00000000000670"&gt;'#$D#$A'          &lt;Numero&gt;10&lt;/Numero&gt;.....
  </code></pre>
  
  <p>Using TXMLDocument</p>
  
  <pre><code>&lt;CompNfse xmlns="http://www.sistema.com.br/Nfse/arquivos/nfse_3.xsd"&gt;'#$D#$A#9'&lt;Nfse versao=""&gt;'#$D#$A#9#9'&lt;InfNfse Id=" 00000000000670"&gt;'#$D#$A#9#9#9'&lt;Numero&gt;10&lt;/Numero&gt;....
  </code></pre>
  
  <p>How i need</p>
  
  <pre><code>&lt;CompNfse xmlns="http://www.sistema.com.br/Nfse/arquivos/nfse_3.xsd"&gt;&lt;Nfse versao=""&gt;&lt;InfNfse Id=" 00000000000670"&gt;&lt;Numero&gt;10&lt;/Numero&gt;....
  </code></pre>
  
  <p>The code i tried.</p>
  
  <pre><code>var sTemp : String;
  oXml : TXMLDocument;
  begin
    try
      sTemp := '&lt;Nfse versao=""&gt;'+#13#10+'        &lt;InfNfse Id=" 00000000000670"&gt;'+#13#10+'          &lt;Numero&gt;10&lt;/Numero&gt;'+#13#10+'              &lt;CodigoVerificacao&gt;82557.2TE79&lt;/CodigoVerificacao&gt;&lt;/InfNfse&gt;&lt;/Nfse&gt;';
      oXml := TXMLDocument.Create(nil);
      oXml.Options := [];
      oXml.ParseOptions := [];
      oXml.LoadFromXML(sTemp);
      sTemp := oXml.XML.Text;
    finally
      oXml := nil;
    end;
  end;
  </code></pre>