title: Remove white space and make in a single line
body: <p>I need to make a change in xml file using python and need to remove the next line / white space .
  For example </p>
  
  <p>I tried regex like but not it not helped.
  I am trying to open a input.xml and replace with regex and save output as output.xml</p>
  
  <pre><code>Dim RegexObj As New Regex("&gt;[\s]*&lt;")
  Newxml = RegexObj.Replace(OldText, "&gt;&lt;")
  </code></pre>
  
  <p>Input.xml</p>
  
  <pre><code>&lt;Instal xmlns="http://www.test.com/abc/dfg"&gt;
  &lt;Version&gt;
      1.1
  &lt;/Version&gt;
  &lt;alpha&gt;
      &lt;ns3:myname xmlns:ns3="http://www.test.com/asd/asd/cvf"&gt;
          GH12345
      &lt;/ns3:myname&gt;
      &lt;ns4:beta xmlns:ns4="http://www.test.com/asd/asd/cvf"&gt;
          PLAN
      &lt;/ns4:beta&gt;
      &lt;ns5:OperatorName xmlns:ns5="http://www.test.com/asd/asd/cvf"&gt;
          Tanho
      &lt;/ns5:OperatorName&gt;
  &lt;/alpha&gt;
  &lt;Laptop&gt;
      A
  &lt;/Laptop&gt;
  &lt;ID&gt;
      2883
  &lt;/ID&gt;
  &lt;PERSON&gt;
      &lt;ns6:FirstName xmlns:ns6="http://www.test.com/asd/asd/cvf"&gt;
          MAMA
      &lt;/ns6:FirstName&gt;
      &lt;ns7:LastName xmlns:ns7="http://www.test.com/asd/asd/cvf"&gt;
          REHA
      &lt;/ns7:LastName&gt;
  &lt;/PERSON&gt;
  &lt;/Instal xmlns="http://www.test.com/abc/dfg"&gt;
  </code></pre>
  
  <p>Output.xml</p>
  
  <pre><code>&lt;Instal xmlns="http://www.test.com/abc/dfg"&gt;
  &lt;Version&gt;1.1&lt;/Version&gt;
  &lt;alpha&gt;
      &lt;ns3:&gt; xmlns:ns3="http://www.test.com/asd/asd/cvf"&gt;GH12345&lt;/ns3:myname&gt;
      &lt;ns4:beta xmlns:ns4="http://www.test.com/asd/asd/cvf"&gt;PLAN&lt;/ns4:beta&gt;
      &lt;ns5:OperatorName xmlns:ns5="http://www.test.com/asd/asd/cvf"&gt;Tanho&lt;/ns5:OperatorName&gt;
  &lt;/alpha&gt;
  &lt;Laptop&gt;A&lt;/Laptop&gt;
  &lt;ID&gt;2883&lt;/ID&gt;
  &lt;PERSON&gt;
      &lt;ns6:FirstName xmlns:ns6="http://www.test.com/asd/asd/cvf"&gt;MAM&lt;/ns6:FirstName&gt;
      &lt;ns7:LastName xmlns:ns7="http://www.test.com/asd/asd/cvf"&gt;REHA&lt;/ns7:LastName&gt;
  &lt;/PERSON&gt;
  &lt;/Instal xmlns="http://www.test.com/abc/dfg"&gt;
  </code></pre>