View Single Post
  #4   (View Single Post)  
Old 14th October 2009
kazcor kazcor is offline
Real Name: Registreed Usre
Port Guard
Join Date: May 2008
Location: bliner, erg
Posts: 20

Well, works like a charm for me. Maybe something else in the surrounding code is causing the problem - like a FileOutputStream which is not correctly released. Just try to output in a new/non-existent file.
However, don't know about your original intent, but for removing a set of unique-named nodes in an unknown XML, I would suggest using a SAX parser instead - much more efficient, although a few more lines to code. In case the XML is quite small and its structure is not subject to change, even parsing with a StringTokenizer might be better
Reply With Quote