[jdom-interest] No namespaces for attributes without prefix

Peter V. Gadjokov pvg at c-c-s.com
Wed Sep 13 10:16:49 PDT 2000

>Hmmm...I don't know about that.  I just re-read through the 
>proposal, and actually it didn't say anything about what 
>namespace, if any, un-prefixed attributes are in.  
>In Appendix A (which is non-normative), it says that
>there's a per-element-type partition into which all un-prefixed >> 
>attributes fall.  

The normative section definitely says that default namespaces do not
apply to attributes. Whether that means they are in the empty
namespace may not be explicitly stated but it is explicitly stated
they are not in the elements declared or defaulted namespace. 
JDOM's behaviour is in line with any other namespace-capable 
parser, when the change is made so that SAXBuilder no longer does
it's own namespace processing, the behaviour will be exactly what 
you see now. While I don't know how airtight this interpretation of 
the spec is - it is though, as you suspect, 'the consensus'.


More information about the jdom-interest mailing list