[jdom-interest] SubDocuments
Gordon Tyler
gordon.tyler at sitraka.com
Thu May 16 11:17:48 PDT 2002
> don't want to rewrite my entire navigation subsystem. The error that
> occurs from when I do:
>
> new Document(anElementFromAnotherDocument);
>
> is of course that it already has an existing parent.
You could try:
new Document(anElementFromAnotherDocument.clone());
Which should deep-clone the Element but leaving the parent unset in the
clone.
Ciao,
Gordon
More information about the jdom-interest
mailing list