title: Removing new line between xml tags in unix shell script
body: <pre><code>&lt;mstr&gt;
    &lt;srt&gt;Payment towards File# 1234&lt;/srt&gt;
    &lt;msg&gt;info for treat sxc
    Pay to shankar  A/C#999999
    bank of ooty&lt;/msg&gt;
    &lt;ins&gt;info for party BB
     Pay to kumar A/C#999999
     state bank&lt;/ins&gt;
  &lt;/mstr&gt;
  </code></pre>
  
  <p>the above XML I would like to convert like below, meaning the data wrapped in the next line between the start and end tags. should in a single line like below.</p>
  
  <pre><code> &lt;mstr&gt;
    &lt;srt&gt;Payment towards File# 1234&lt;/srt&gt;
    &lt;msg&gt;info for treat sxc Pay to shankar  A/C#999999 bank of chen&lt;/msg&gt;
    &lt;ins&gt;info for party BB Pay to kumar A/C#999999 state bank&lt;/ins&gt;
  &lt;/mstr&gt;
  </code></pre>
  
  <p>I have tried the below way, by referring web answer. want to understand what below awk command does also looking for any other alternative to fix my issue?  </p>
  
  <pre><code> awk '{printf /^&lt;/&amp;&amp;!/^&lt;\//?RS $0:$0}'
  </code></pre>