[jdom-interest] detaching root element from the document

Abhishek Srivastava abhisheks at india.hp.com
Tue May 29 02:32:36 PDT 2001

Hello All,

I was browsing thru the archives of this mailing list on Merging two JDOM
Trees thread.

In the list it is mentioned that I extract the rootElement from the document
and then call detach() on it. After this I should add the node into the new
JDOM Tree.

However, the Element does not have any api called detach().

How to first detach an element from its document so that  it can be added to
a new JDOM Tree ?


    *****     *****     Abhishek Srivastava
    ***  /_  __ ***     Hewlett-Packard - Solutions Organization
    **  / / /_/  **     19 Cunningham Road. Bangalore -560052.
    ***    /    ***     phone +91 80 2251554 Extn:1532
    *****     *****     mailto:abhisheks at india.hp.com
      i n v e n t

         The most exciting phrase in science, the one which heralds
         new discoveries, is not Eureka!! but 'That's Funny'
                                       -- Issac Asimov.

More information about the jdom-interest mailing list