[jdom-interest] insertChild in Element

trebor.a.rude at lmco.com trebor.a.rude at lmco.com
Thu Aug 31 07:57:20 PDT 2000

	Actually, returning this wouldn't mimic the current functionality of
getChildren(), which weeds out all the non-Element children in the List it
returns. If we do end up having Element implement List, there's no reson to
change getChildren().  That would be best for backwards compatibility, and
allow programmers to use whichever model they're comfortable with.

Trebor A. Rude
trebor.a.rude at lmco.com

> -----Original Message-----
> From:	donaldp at mad.scientist.com [SMTP:donaldp at mad.scientist.com]
> Sent:	Wednesday, August 30, 2000 8:18 PM
> To:	jdom-interest at jdom.org
> Subject:	RE: [jdom-interest] insertChild in Element
> I think I would like this approach - it makes a lot more
> sense semantically thou it would still take getting used
> to. You can always have getChildren() return this to
> implement current functionality. I guess this turns JDOM
> into more of a *Object* model structure rather than *XML*
> object model but it could be worth it - if you could
> implement it as/more efficiently than ArrayList

More information about the jdom-interest mailing list