I have a XML similar to following which I am processing in JavaScript.
<doc>
<entry>
<child1>
<child2>
<child3 n="a">
</child3>
</child2>
</child1>
</entry>
<entry>
<child1>
<child2>
<child3 n="b">
</child3>
</child2>
</child1>
</entry>
<entry>
<child1>
<child2>
<child3 n="c">
</child3>
</child2>
</child1>
</entry>
</doc>
If child3, n = "c", I need to remove the whole <entry>
tag. My problem is if I do it in a normal loop, the index changes and it doesn't work.
So my question is, how can i remove each where one of the child3, n == "c" - There can be multiple of each entry where child3 n = "c".