[jdom-interest] API instability?

Galluzzo, Eric EGalluzzo at synchrony.net
Tue Sep 5 07:02:59 PDT 2000

Hmmm.  This is indeed a problem, and I can't think of a wonderful solution
for it.  I'd be willing to live with this (since I assume one would not want
to change addContent() to alter the child's namespace!), but others may not.
Vote? :)

Also, the second version of the code below would continue to work.

    - Eric

> -----Original Message-----
> From: Jason Hunter [mailto:jhunter at collab.net]
> Sent: Sunday, September 03, 2000 4:26 PM
> To: Elliotte Rusty Harold
> Cc: Brett McLaughlin; Galluzzo Eric; 'jdom-interest at jdom.org'
> Subject: Re: [jdom-interest] API instability?
> To argue against myself and with Elliotte, another problem with
> getChild("child") using the parent's namespace is that
> Element kid = new Element("kid");
> parent.addContent(kid);
> parent.getChild("kid");
> *wouldn't work* if the parent was in a namespace.  That's pretty
> confusing.  With the current code it would work because kid 
> would be in
> no namespace.  With namespaces it'd work too:
> Element kid = new Element("kid", ns);
> parent.addContent(kid);
> parent.getChild("kid", ns);

More information about the jdom-interest mailing list