Learn how easy it is to sync an existing GitHub or Google Code repo to a SourceForge project! See Demo

Close

XMLModifier - removeing multiple nodes

TXAggie
2011-09-13
2013-05-15
  • TXAggie
    TXAggie
    2011-09-13

    Hello All!
    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?

    Thanks,
    Scott

     
  • jimmy zhang
    jimmy zhang
    2011-09-21

    your question is not clear, what is teh issue with resetting xmlModifier?

     
  • TXAggie
    TXAggie
    2011-09-21

    I apologize.  I should have closed this thread a while back.  I was able to get it working just fine.

    Thanks,
    Scott