[jdom-interest] Re: [jdom-interest] Help to crEAte/copy xml file¡¡¡¡
Ken Rune Helland
kenh at csc.no
Wed Dec 12 05:27:29 PST 2001
> Hi friends of JDOM¡¡
> I'm writing an apllication to generate one xml file from five another
> xml files.
> I have to search Elements in the source xml files and COPY them to the
> destiny xml file.
> Could you give me some suggestion or methods of JDOM to acomplish this
> I use detach() method but this method modify the source xml files and i
> do'n want to modify this files. I only need to copy some Elements and
> write them in the Destiny xml file.
> Thanks in advance and my best regards from Spain.
> PD: Could you recommend me some book about JDOM??
> Thanks again.
you can copy elements using Element.clone().
BTW the other jdom objects also implment clone().
More information about the jdom-interest