[XML-SIG] pyxml fails in mod_python-2.7.8
Uche Ogbuji
uche.ogbuji@fourthought.com
Thu, 12 Dec 2002 07:50:02 -0700
> i just updated my PyXML installation to 0.8.1.
>
> i'm using apache 1.3.27 with mod_python-2.7.8.
>
> within mod_python i can't get a simple hello-world to work which works
> fine outside mod_python and worked fine with prior versions of PyXML.
[snip]
> i get a NoneObject from fromString() where i get a <XML Document at 81f0f24>
> outside mod_python.
>
> any hints how to use PyXML-0.8.1 within mod_python-2.7.8?
I'm not sure what is going on here, but unless you have to use 4DOM, I would
recommend using minidom (much faster).
Rather than
from xml.dom.ext.reader import Sax2
...
doc = self.xml_reader.fromString("<foo><bar>spam</bar></foo>")
Use
from xml.dom import minidom
...
doc = minidom.parse("<foo><bar>spam</bar></foo>")
And update the initializer accordingly.
In any case, we'll need more data to help debug.
--
Uche Ogbuji Fourthought, Inc.
http://uche.ogbuji.net http://4Suite.org http://fourthought.com
Tour of 4Suite - http://www.xml.com/pub/a/2002/10/16/py-xml.html
Proper XML Output in Python - http://www.xml.com/pub/a/2002/11/13/py-xml.html
RSS for Python - http://www-106.ibm.com/developerworks/webservices/library/ws-p
yth11.html
Debug XSLT on the fly - http://www-106.ibm.com/developerworks/xml/library/x-deb
ugxs.html