XML.com: XML From the Inside Out

XML.comWebServices.XML.comO'Reilly Networkoreilly.com
  Articles | Weblogs | Newsletter | Safari Bookshelf
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:


Contact Us | Our Mission | Privacy Policy | Advertise With Us | | Submissions Guidelines
Copyright © 2008 O'Reilly Media, Inc. | (707) 827-7000 / (800) 998-9938