[jdom-interest] Moving elements
Fabrizio Di Giuseppe
fabricius at ianus.net
Fri May 2 08:54:17 PDT 2003
Giovedì, 1 Mag 2003, alle 08:01 Europe/Rome,
jdom-interest-request at jdom.org ha scritto:
> 3) We could change the add semantics. David Flanagan suggested this,
> and it's how DOM does things. If you add an element somewhere and the
> element already has a parent, the new parent just trumps it.
This seems to be error prone. It's impossible to ensure that a content
given back from a getContent will be not removed later. An explicit
call like getContentDetached or removeContent shoud be better.
ciao
--
Lacho calad! Drego morn!
More information about the jdom-interest
mailing list