Sign In/My Account | View Cart  
advertisement

Article:
 Decomposition, Process, Recomposition
Subject: Expatreader.py error (line 156)
Date: 2004-08-06 19:32:07
From: Uche Ogbuji
Response to: Expatreader.py error (line 156)

It turns out I got burned yet again by the differences between PySAX with and without PyXML installed. You can't set the namespace prefix feature in PySAX unless you have PyXML installed. I posted updated/fixed version of sax2dom_chunker.py in the Python Cookbook. Use that version rather than listing 2 here, and then omit the line


parser.setFeature(sax.handler.feature_namespace_prefixes, 1)


from your set-up code.


Good luck.


No Previous Message Previous Message Move up to Parent Message Up Next Message No Next Message


Sponsored By: