[XML-SIG] sax parsing and namespaces

Alexandre Fayolle Alexandre.Fayolle@logilab.fr
Fri, 16 Nov 2001 11:35:04 +0100 (CET)


I could not find the answer to this question in the documentation. 

It looks like the SIG has chosen to tweak the java SAX2 ContentHandler to
have both startElement and startElementNS. While this ease the transition
from SAX1 to SAX2, needing to write both callbacks can cause code
duplication. Is there a way of being sure that some XmlReader instance
will call startElement or startElementNS. 

In other words, does, for instance, setting the
http://xml.org/sax/features/namespaces feature to TRUE guarantee that
startElementNS will be called (and not startElement). Is it a bug for an
instance of XmlReader to do otherwise?

TIA

Alexandre Fayolle
-- 
LOGILAB, Paris (France).
http://www.logilab.com   http://www.logilab.fr  http://www.logilab.org
Narval, the first software agent available as free software (GPL).