How can I remove all the nodes between two comment nodes using java DOM apis. I have below xml format.
.
.
<!-- start: my configs -->
<student id="100">
<school>Saint Dnyaneshwar School</school>
<division>science</division>
<percentage>60.06</percentage>
</student>
<student id="101">
<school>Saint Dnyaneshwar School</school>
<division>Marathi</division>
<percentage>77.06</percentage>
</student>
<!-- end: my configs -->
.
.
.
I want to remove all the nodes between start: my configs and end: my configs comments nodes. How this can be achieved uding Java DOM apis.
Thanks in advance.