[jdom-interest] Trusting parsers with namespaces

Bradley S. Huffman hip at a.cs.okstate.edu
Sun Apr 6 13:13:37 PDT 2003


Elliotte Rusty Harold writes:

> At 1:11 PM -0500 4/6/03, Bradley S. Huffman wrote:
> 
> >Right now SAXBuilder's default is to always set SAX "namespaces" to
> >true and "namespace-prefix" to false, and you cannot change that.
> 
> I think that's wrong. It should set both to true in order to 
> propagate namespaces in scope and additional namespaces properly.

Looks like it's been that way since beta 5 and hasn't cause any major problems
yet (key word being "yet). But thinking about this "namespace-prefixes" == true 
ensures the qname will be availible through startElement, otherwise it's 
optional and I guess Xerces (and Crimson before) always provided it even
though they didn't have to. So I guess we've been living on borrowed time.

Guess that should be fixed before beta 9.

Brad



More information about the jdom-interest mailing list