Remove an element from an xml File using jdom

Posted by Llistes Sugra on Stack Overflow See other posts from Stack Overflow or by Llistes Sugra
Published on 2010-04-17T18:40:19Z Indexed on 2010/04/17 18:43 UTC
Read the original article Hit count: 467

Filed under:
|
|
|
|

I have a 300 KB xml file with 70 elements in it. I need to be efficient upon removing one of the root's elements. What is the best approach?

  • Should I detach the element in memory, save it and overwrite it by moving it?
  • Is there a better option?

I like org.jdom but any improvement is welcome

© Stack Overflow or respective owner

Related posts about Xml

Related posts about efficiency