From: SourceForge.net <no...@so...> - 2003-08-28 19:29:32
|
Bugs item #533354, was opened at 2002-03-21 23:01 Message generated for change (Comment added) made by makopack You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=112867&aid=533354&group_id=12867 Category: Library Group: Fixed in 2.2a0 Status: Closed Resolution: Fixed Priority: 5 Submitted By: Pat Walters (wpwalters) Assigned to: Finn Bock (bckfnn) Summary: bug in xml.dom.minidom.parseString Initial Comment: Jython 2.1 on java1.3.1_02 (JIT: null) Type "copyright", "credits" or "license" for more information. >>> import xml.dom.minidom >>> DOM = xml.dom.minidom.parseString("<foo><bar/></foo>") Traceback (innermost last): File "<console>", line 1, in ? File "/usr/java/jython/Lib/xml/dom/minidom.py", line 913, in parseString File "/usr/java/jython/Lib/xml/dom/minidom.py", line 900, in _doparse File "/usr/java/jython/Lib/xml/dom/pulldom.py", line 251, in getEvent AttributeError: feed ----------------------------------------------------------------------------------- same problem exists with xml.dom.minidom.parse Jython 2.1 on java1.3.1_02 (JIT: null) Type "copyright", "credits" or "license" for more information. >>> import xml.dom.minidom >>> DOM = xml.dom.minidom.parse("foo.xml") Traceback (innermost last): File "<console>", line 1, in ? File "/usr/java/jython/Lib/xml/dom/minidom.py", line 908, in parse File "/usr/java/jython/Lib/xml/dom/minidom.py", line 900, in _doparse File "/usr/java/jython/Lib/xml/dom/pulldom.py", line 251, in getEvent AttributeError: feed ---------------------------------------------------------------------- Comment By: Mike Kopack (makopack) Date: 2003-08-28 19:29 Message: Logged In: YES user_id=854408 How exactly does one go about applying the fix that davidzhu mentioned? I tried copying just the drv_xmlproc.py file over from my CPython 2.1 + PyXML0.7.3 installation over the top of the one found in the Jython 2.1 but it still doesn't seem to be working. Do you have to recompile or something??? HELP! ---------------------------------------------------------------------- Comment By: Finn Bock (bckfnn) Date: 2002-05-31 10:43 Message: Logged In: YES user_id=4201 As davidzhu noticed, this bug is fixed in PyXML-0.7.1 and the next release of jython will include 0.7.1 or a later release. Unfortunately a bug the sre prevents using 0.7.1 with jython-2.1. The sre bug is fixed in SRE_STATE.java: 1.10 ---------------------------------------------------------------------- Comment By: Finn Bock (bckfnn) Date: 2002-05-31 10:40 Message: Logged In: YES user_id=4201 Added as test363. ---------------------------------------------------------------------- Comment By: David Zhu (davidzhu) Date: 2002-04-24 20:47 Message: Logged In: YES user_id=525508 I've found a temporary work around by updating the existing drv_xmlproc.py included with jython-2.1 with that from PyXML-0.7 Not sure what other ramifications there are with this change but preliminary testing shows that minidom's parseString will now work. ---------------------------------------------------------------------- Comment By: Nobody/Anonymous (nobody) Date: 2002-04-24 20:15 Message: Logged In: NO I've traced this bug to the fact that by default xml.sax.make_parser() creates a xml.sax.drivers2.drv_xmlproc and drv_xmlrpoc.py does not have a method feed(). So hopefully someone will fix this soon? ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=112867&aid=533354&group_id=12867 |