From: <no...@so...> - 2002-04-24 20:48:00
|
Bugs item #533354, was opened at 2002-03-21 15:01 You can respond by visiting: http://sourceforge.net/tracker/?func=detail&atid=112867&aid=533354&group_id=12867 Category: Library Group: None Status: Open Resolution: None Priority: 5 Submitted By: Pat Walters (wpwalters) Assigned to: Nobody/Anonymous (nobody) 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: David Zhu (davidzhu) Date: 2002-04-24 13: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 13: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: http://sourceforge.net/tracker/?func=detail&atid=112867&aid=533354&group_id=12867 |