XML Parser Trouble in Python 2.1
paulp at ActiveState.com
Tue May 29 18:05:25 EDT 2001
David Lees wrote:
> However, when I try executing it on my RedHat Linux 7.1 system I get the
> following error stack, which puzzles me. I do not understand why some
> of the error messages even refer to 'sax' parser, since I am using dom.
> And I am puzzled why I get any errors in the first place.
I have a feeling you are missing the expat library. Try this:
>>> import xml.parsers.expat
>>> parser = xml.parsers.expat.ParserCreate()
Take a recipe. Leave a recipe.
Python Cookbook! http://www.ActiveState.com/pythoncookbook
More information about the Python-list