[jdom-interest] API instability?
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.
Also, the second version of the code below would continue to work.
> -----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");
> *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.getChild("kid", ns);
More information about the jdom-interest