Re: Re: Welcome to the "jdom-interest" mailing list
| Newsgroups | gmane.comp.java.jdom.general |
|---|---|
| Message-ID | <[email protected]> |
Hi, you have to detach the Element nabil from moha like this: Element nabil2 = (Element)nabil.detach(); Than, you have a parentless Element with which you can generate a new document. Good luck. mohammed lethrech schrieb: > hi, > i m new in jdom mailling list, it s my first mail, > i have a broblem using jdom, i wont to creat a new document from a part > of an other document > > document1: > <moha> > <nabil> > <jalal>aida</jalal> > </nabil> > </moha> > > i want to have the following document: > document2: > <nabil> > <jalal>aida</jalal> > </nabil> > > > i have this folowing problem: > _ > > org.jdom.IllegalAddException > > _: The _Content_ already has an existing _parent_ "_moha_" > > think you a lot > > > ------------------------------------------------------------------------ > > _______________________________________________ > To control your jdom-interest membership: > http://www.jdom.org/mailman/options/jdom-interest/[email protected] _______________________________________________ To control your jdom-interest membership: http://www.jdom.org/mailman/options/jdom-interest/[email protected]