[XML-SIG] sax parsing and namespaces

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


On Fri, 16 Nov 2001, Juergen Hermann wrote:

> On Fri, 16 Nov 2001 11:35:04 +0100 (CET), Alexandre Fayolle wrote:
> 
> >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?
> 
> AFAIK, yes. If the setFeature would not work for the parser, it's supposed
> to raise a not-supported or not-recognized exception. Besides, isn't the
> documented SAX2 default for this "true"?

Well xml.sax.drivers2.drv_pyexpat and xml.sax.drivers2.drv_xmlproc seem to
be behaving that way, except that PyExpat has the feature disabled by
default (bug #482001)

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).