Re: Resetting the Root Element

Sebastian Hinterwälder <[email protected]>
Newsgroups gmane.comp.java.jdom.general
Message-ID <[email protected]>
Hello
>
> 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
_______________________________________________
To control your jdom-interest membership:
http://www.jdom.org/mailman/options/jdom-interest/[email protected]
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.