title: xml read many values and echo them in sh
body: <p>i have an xml VARIABLE named XML like this:</p>
  
  <pre><code>&lt;m:RgWsPublicFirmActRtUser&gt;
        &lt;m:firmActDescr&gt;TEXT&lt;/m:firmActDescr&gt;
        &lt;m:firmActKind&gt;2&lt;/m:firmActKind&gt;
        &lt;m:firmActKindDescr&gt;TEXT&lt;/m:firmActKindDescr&gt;
        &lt;m:firmActCode&gt;47191000&lt;/m:firmActCode&gt;
  &lt;/m:RgWsPublicFirmActRtUser&gt;
  </code></pre>
  
  <p>and I was echo them with the command</p>
  
  <pre><code>#!/bin/sh
  echo $XML | grep -o -P '(?&lt;=&lt;m:firmActDescr&gt;).*(?=&lt;/m:firmActDescr&gt;)'
  echo "something"
  </code></pre>
  
  <p>and i get</p>
  
  <pre><code>TEXT 
  something
  </code></pre>
  
  <p>but now i have the same with more than one values and the xml is now like this:</p>
  
  <pre><code>&lt;m:RgWsPublicFirmActRtUser&gt;
        &lt;m:firmActDescr&gt;TEXT&lt;/m:firmActDescr&gt;
        &lt;m:firmActKind&gt;2&lt;/m:firmActKind&gt;
        &lt;m:firmActKindDescr&gt;TEXT&lt;/m:firmActKindDescr&gt;
        &lt;m:firmActCode&gt;47191000&lt;/m:firmActCode&gt;
  &lt;/m:RgWsPublicFirmActRtUser&gt;
  &lt;m:RgWsPublicFirmActRtUser&gt;
        &lt;m:firmActDescr&gt;TEXT2&lt;/m:firmActDescr&gt;
        &lt;m:firmActKind&gt;3&lt;/m:firmActKind&gt;
        &lt;m:firmActKindDescr&gt;TEXT2&lt;/m:firmActKindDescr&gt;
        &lt;m:firmActCode&gt;47191000&lt;/m:firmActCode&gt;
  &lt;/m:RgWsPublicFirmActRtUser&gt;
  </code></pre>
  
  <p>and also TEXT3 and so on.</p>
  
  <p>how i cam make my program to show:</p>
  
  <pre><code>TEXT1 
  something
  TEXT2
  something 
  TEXT3
  something
  </code></pre>
  
  <p>and show on</p>
  
  <p>i cant use the previous method any more, meaby use something like a "while" and a xml command to get the values?
  thx!</p>