title: sed uncomment specfic xml comments out of a file
body: <p>I have a config file which may OR may not have tasks commented out. If the tasks are commented, I want to "uncomment them"!</p>
  
  <pre><code>sed  -i '/&lt;!--/d; /--&gt;/d testfile
  </code></pre>
  
  <p>I have this so far but it removes all the comments in the file. </p>
  
  <pre class="lang-xml prettyprint-override"><code>&lt;!--Comment at the top of the file which should not be removed
  
  --&gt;
  
    &lt;!--
    &lt;task&gt;
  
    &lt;tag&gt;
    &lt;tag1&gt;keep this content &lt;/tag1&gt;
    &lt;/tag&gt;
  
    &lt;/task&gt;
  --&gt;
  </code></pre>
  
  <p>I only want to remove comments for task tags which will look like the above in the file (comment won't be on the same line), but keep the content inbetween. Can i use sed to do this without removing any other comments?</p>