title: remove EOLs and spaces between two tags in xml files
body: <p>I have a lot (more than 50) xml files with some lines (more than 30/40 per files) with incorrect formatting :</p>
  
  <p>example, this:</p>
  
  <pre><code>&lt;TAG1&gt;
      &lt;TAG_TO_FORMAT&gt;
             a_random_string
  
      &lt;/TAG_TO_FORMAT&gt;
      &lt;AN_OTHER_TAG_TO_FORMAT&gt;
                         an_other_random_string
      &lt;/AN_OTHER_TAG_TO_FORMAT&gt;
      &lt;OTHER_TAG&gt;pifpafpouf&lt;/OTHER_TAG&gt;
  
  &lt;/TAG1&gt;
  </code></pre>
  
  <p>should be transform into this:</p>
  
  <pre><code>&lt;TAG1&gt;
      &lt;TAG_TO_FORMAT&gt;a_random_string&lt;/TAG_TO_FORMAT&gt;
      &lt;AN_OTHER_TAG_TO_FORMAT&gt;an_other_random_string&lt;/AN_OTHER_TAG_TO_FORMAT&gt;
      &lt;OTHER_TAG&gt;pifpafpouf&lt;/OTHER_TAG&gt;
  
  &lt;/TAG1&gt;
  </code></pre>
  
  <p>it doesn't matter if the new line before <code>&lt;/TAG1&gt;</code> is still present, my key problem is that each pattern : <code>&lt;TAG&gt;random_string&lt;/TAG&gt;</code> must be on one line (the random_string does not contain an EOL) </p>
  
  <p>I couldn't find any tool in bash allowing me to perform this, so how could i do this in bash ? (or maybe in python but i would prefer bash).</p>