[jdom-interest] JDom Element question.
Kenworthy, Edward
edward.kenworthy at exchange.co.uk
Tue Jun 12 06:44:08 PDT 2001
As usual as soon as I posted I spotted the problem in my code.
Thanks for confirming it :)
Edward
-----Original Message-----
From: philip.nelson at omniresources.com
[mailto:philip.nelson at omniresources.com]
Sent: 12 June 2001 14:37
To: edward.kenworthy at exchange.co.uk; jdom-interest at jdom.org
Subject: RE: [jdom-interest] JDom Element question.
> 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