PyXML - setContentHandler??

"Martin v. Löwis" martin at v.loewis.de
Fri Apr 25 08:04:09 EDT 2003


Randy Heiland wrote:

> I'm using a chunk of code that does:
> 
>  >>> parser = xml.sax.make_parser()
> <define a handler>
>  >>> parser.setContentHandler(handler)
> 
> however, using PyXML, I get:
> AttributeError: SAX_expat instance has no attribute 'setContentHandler'

Where do these come from? I.e. what is xml.sax.__file__, and
parser.__class__.__module__?

Regards,
Martin






More information about the Python-list mailing list