title: Parse html with jsoup and remove the tag block
body: <p>I want to remove everything between a tag. An example input may be</p>
  
  <p>Input:</p>
  
  <pre><code>&lt;body&gt;
    start
    &lt;div&gt;
      delete from below
      &lt;div class="XYZ"&gt;
        first div having this class
        &lt;div&gt;
          waste
        &lt;/div&gt;
        &lt;div class="XYZ"&gt;
          second div having this class
        &lt;/div&gt;
        waste
      &lt;/div&gt;
      delete till above
    &lt;/div&gt;
    &lt;div&gt;
      this will also remain
    &lt;/div&gt;
    end
  &lt;/body&gt;
  </code></pre>
  
  <p>The output will be:</p>
  
  <pre><code>&lt;body&gt;
    start
    &lt;div&gt;
      delete from below
      delete till above
    &lt;/div&gt;
    &lt;div&gt;
      this will also remain
    &lt;/div&gt;
    end
  &lt;/body&gt;
  </code></pre>
  
  <p>Basically, I have to remove the entire block for the first occurrence of <code>&lt;div class="XYZ"&gt;</code></p>
  
  <p>Thanks,</p>