[jdom-interest] setContent NOT setting parent correctly.
Jason Hunter
jhunter at servlets.com
Thu Oct 16 12:40:39 PDT 2003
> Actually, it's not. The FAQ covers how to copy/move a single element,
> but not the entire contents of an element.
Hmm, you're right. I thought I remembered adding something about this.
The new CVS makes it easy as Brad said. With older releases, Alex came
up with a good trick where basically you make a new ArrayList out of the
existing content, detach them, then add the contents of your copied
ArrayList. It's short and fast.
As Brad said, there's been heavy discussion about whether there should
be an implicit detachment and the verdict has been no.
-jh-
More information about the jdom-interest
mailing list