Java Mailing List Archive

http://www.junlu.com/

Home » Home (12/2007) » JDOM User »

Re: [jdom-interest] Resetting the Root Element

Sebastian Hinterwälder

2007-11-06

Replies:

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/youraddr@(protected)
©2008 junlu.com - Jax Systems, LLC, U.S.A.