Newbie Python+XML Question

Brian Quinlan brian at sweetapp.com
Tue Mar 5 18:58:39 EST 2002


Jeff wrote:
> % python2.1 testg.py
> Traceback (most recent call last):
>   File "testg.py", line 26, in ?
>     class XmlHandler(saxutils.DefultHandler):
> AttributeError: 'xml.sax.saxutils' module has no attribute
'DefultHandler'
> 
>    It looks like the SAX stuff is not getting imported correctly.
> Does anyone feel like helping a lowly Newbie with this one?

Easy one: you spelled "Default" incorrectly. Change 'DefultHandler' to
'DefaultHandler' everywhere in that script.

Cheers,
Brian





More information about the Python-list mailing list