[jdom-interest] Moving elements

Alex Rosen arosen at novell.com
Fri May 2 10:23:16 PDT 2003


"It's impossible to ensure that a content given back from a getContent will be not removed later."

That's the case with or without this proposed change - it's the design of JDOM that the returned lists are live in this way.

Alex

>>> Fabrizio Di Giuseppe <fabricius at ianus.net> 5/2/2003 11:54:17 AM >>>
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!

_______________________________________________
To control your jdom-interest membership:
http://lists.denveronline.net/mailman/options/jdom-interest/youraddr@yourhost.com




More information about the jdom-interest mailing list