[jdom-interest] Resetting the Root Element

Sebastian Hinterwälder hintsn at idmt.fraunhofer.de
Tue Nov 6 01:35:20 PST 2007

> You have to create a new root element and detach content from the old 
> root to add it to the new root :
>     Element newRoot = new Element(...);
>     newRoot.setContent(oldRoot.removeContent());
Thanks a lot to you guys. That was exactly the solution I was searching 
for. Great support.

Greets Sebastian

More information about the jdom-interest mailing list