title: Add/remove xml tags using a bash script
body: <p>I have an xml file that I want to configure using a bash script.  For example if I had this xml:  </p>
  
  <pre><code>&lt;a&gt;
  
    &lt;b&gt;
      &lt;bb&gt;
          &lt;yyy&gt;
              Bla 
          &lt;/yyy&gt;
      &lt;/bb&gt;
    &lt;/b&gt;
  
    &lt;c&gt;
      &lt;cc&gt;
        Something
      &lt;/cc&gt;
    &lt;/c&gt;
  
    &lt;d&gt;
      bla
    &lt;/d&gt;
  &lt;/a&gt;
  </code></pre>
  
  <p><em>(confidential info removed)</em></p>
  
  <p>I would like to write a bash script that will remove section <code>&lt;b&gt;</code> (or comment it) but keep the rest of the xml intact.  I am pretty new the the whole scripting thing.  I was wondering if anyone could give me a hint as to what I should look into.  </p>
  
  <p>I was thinking that sed could be used <em>except</em> sed is a line editor.  I think it would be easy to remove the <code>&lt;b&gt;</code> tags however I am unsure if sed would be able to remove all the text <strong>between</strong> the <code>&lt;b&gt;</code> tags.  </p>
  
  <p>I will also need to write a script to add back the deleted section.    </p>