[jdom-interest] JDom Element question.

philip.nelson at omniresources.com philip.nelson at omniresources.com
Tue Jun 12 06:37:29 PDT 2001


> I have an Element foo.
> 
> If I do:
> 
> 	Element bar1 = foo.getChild("bar");
> 	Element bar2 = foo.getChild("bar");
> 
> I *seem* to be getting back *two* separate instances rather than two
> references to a single instance. Is this how it works ?

Nope.  Test bar1 == bar2 and unless there is something seriously wrong, this
will evaluate true.



More information about the jdom-interest mailing list