[XML-SIG] [ pyxml-Bugs-503823 ] drv_javasax and InputSource

noreply@sourceforge.net noreply@sourceforge.net
Tue, 15 Jan 2002 04:15:14 -0800


Bugs item #503823, was opened at 2002-01-15 04:15
You can respond by visiting: 
http://sourceforge.net/tracker/?func=detail&atid=106473&aid=503823&group_id=6473

Category: None
Group: None
Status: Open
Resolution: None
Priority: 5
Submitted By: Stéphane Bidoul (sbidoul)
Assigned to: Nobody/Anonymous (nobody)
Summary: drv_javasax and InputSource

Initial Comment:

* Stéphane Bidoul
| 
| With PyXML and Python (C), I typically write this 
kind of code,
| parser being an XMLReader:
| 
| >> parser.parse(open("test.xml"))
| 
| Now, using jython and drv_javasax, it complains with:
| 
| >> TypeError: parse(): 1st arg can't be coerced to 
org.xml.sax.InputSource or String

* Lars Marius Garshol

This is a bug, since the library documentation 
explicitly says that
file-like objects are allowed.
 
On the other hand, this means wrapping PyFile 
instances to make them
look like Readers or InputStreams, which I seem to 
recall is quite
difficult.


----------------------------------------------------------------------

You can respond by visiting: 
http://sourceforge.net/tracker/?func=detail&atid=106473&aid=503823&group_id=6473