[XML-SIG] Problem with xml.sax and wxpython

João Vilela jvilela at dcc.online.pt
Tue Mar 29 17:35:37 CEST 2005


Hi,
I'm using wxpython in a project I'm working and know I've got the need
to parse a xml file, which is already done. I used the following code to
achieve it:

from xml.sax import saxlib, saxexts

parser = saxexts.make_parser()
handler = handler() -> method that creates my handler
parser.setDocumentHandler(handler)
parser.feed(input)
result = handler.getoutput()

When I use this separately, only in python it works fine. When I use it
within wxpython, I get a segmentation fault when creating the parser.
Has anyone ever had this problem?

I'm using wxPython-2.5.3.1 and python-2.3.

Thanks!

JP


More information about the XML-SIG mailing list