Attribute defaulting to element NS may cause problems (was: Re: SAX2 NS processing (was Re: Namespace question))

Stefan Haustein haustein at
Fri Jan 7 15:25:56 GMT 2000

If attributes are defaulted to the element's namespace in SAX, 
and you build a DOM tree of the parser output, access to 
unprefixed attributes will be unclear in DOM:

call getAttributeNS (null, ....) or getAttributeNS (elementNS, ....) ?

Also, a DOM writer that follows the namespace spec, would add 
prefixes to all unprefixed attributes (!!)

Thus, either the namespace specification should be simplified or
unprefixed attributes should not default to the element's namespace.

Best regards


xml-dev: A list for W3C XML Developers. To post, mailto:xml-dev at
Archived as: and on CD-ROM/ISBN 981-02-3594-1
To unsubscribe, mailto:majordomo at the following message;
unsubscribe xml-dev
To subscribe to the digests, mailto:majordomo at the following message;
subscribe xml-dev-digest
List coordinator, Henry Rzepa (mailto:rzepa at

More information about the Xml-dev mailing list