Lists Home |
Date Index |
> What's important, IMHO, is that all namespace attributes use the
> magic namespace name so that it's easy to uniformly ignore them.
> > Returning null could break a lot of perfectly reasonable code. The
> > empty string (or maybe even a non-empty but non-NCName string like
> > "*") would be a better choice.
> I agree that the empty string is the Right Thing.
Hmm ... how about Less Wrong ;-)
I'm slightly worried that there might be code which assumes (not
attrs.getLocalName(0).length() > 0
hence that, eg.,
can't fail, or that,
won't be true for all values of foo. Using "xmlns" for the local part
(ie. option c) fixes this, but could be misinterpreted as a vanilla
NCName. Something like "*" wouldn't have that problem (which isn't to
say that it wouldn't have other worse problems).