Issue533354
Created on 2002-03-21.23:01:39 by wpwalters, last changed 2003-08-28.19:29:28 by makopack.
Messages | |||
---|---|---|---|
msg630 (view) | Author: Pat Walters (wpwalters) | Date: 2002-03-21.23:01:39 | |
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 |
|||
msg631 (view) | Author: Nobody/Anonymous (nobody) | Date: 2002-04-24.20:15:03 | |
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? |
|||
msg632 (view) | Author: David Zhu (davidzhu) | Date: 2002-04-24.20:47:54 | |
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. |
|||
msg633 (view) | Author: Finn Bock (bckfnn) | Date: 2002-05-31.10:40:20 | |
Logged In: YES user_id=4201 Added as test363. |
|||
msg634 (view) | Author: Finn Bock (bckfnn) | Date: 2002-05-31.10:43:40 | |
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 |
|||
msg635 (view) | Author: Mike Kopack (makopack) | Date: 2003-08-28.19:29:28 | |
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! |
History | |||
---|---|---|---|
Date | User | Action | Args |
2002-03-21 23:01:39 | wpwalters | create |
Supported by Python Software Foundation,
Powered by Roundup