title: Shell: Extract specific blocks from an XML file
body: <p>I have a xml file with a same tag occuring multiple times continuously. I need to extract only that set of tags as an array.</p>
  
  <p>xml file looks like:</p>
  
  <pre><code>...
  &lt;otherTags&gt;
  &lt;myTag&gt;
    &lt;abc/&gt;
  &lt;/myTag&gt;
  &lt;myTag&gt;
    &lt;abc/&gt;
  &lt;/myTag&gt;
  &lt;myTag&gt;
    &lt;abc/&gt;
  &lt;/myTag&gt;
  &lt;otherTags&gt;
  ...
  </code></pre>
  
  <p>My output should look like:</p>
  
  <pre><code>&lt;myTag&gt;
    &lt;abc/&gt;
  &lt;/myTag&gt;
  
  &lt;myTag&gt;
    &lt;abc/&gt;
  &lt;/myTag&gt;
  
  &lt;myTag&gt;
    &lt;abc/&gt;
  &lt;/myTag&gt;
  </code></pre>