I am using xpath to iterate through a document and I would like to remove all the nodes that match the xpath expression. The problem is how to properly remove each node as I am iterating. I use XMLModifier.remove() to remove the node in a while(AutoPilot.evalXPath() != -1) loop. Since I have to reset XMLModifier after every reuse, what is the best way to go about this?
your question is not clear, what is teh issue with resetting xmlModifier?
I apologize. I should have closed this thread a while back. I was able to get it working just fine.
Log in to post a comment.