Bugs item #21395, was opened at 2008-07-30 12:53
You can respond by visiting:
http://rubyforge.org/tracker/?func=detail&atid=1971&aid=21395&group_id=494
Category: None
Group: None
Status: Open
Resolution: None
Priority: 3
Submitted By: Nobody (None)
Assigned to: Nobody (None)
Summary: XML::Parser.io unfair to StringIO ?
Initial Comment:
> LibXML::XML::Parser::VERSION
=> "0.8.3"
> xp = LibXML::XML::Parser.new
=> #<LibXML::XML::Parser:0x5464d8>
> xp.io = StringIO.new('<?xml version="1.0" encoding="utf-8"?><foo></foo>')
TypeError: need an IO object
----------------------------------------------------------------------
Comment By: Erik Hollensbe (erikh)
Date: 2008-07-30 14:45
Message:
StringIO doesn't inherit from IO, it just mirrors the interface.
f.e.:
StringIO.new("").kind_of? IO == false
The code will have to be adapted to handle StringIO directly.
----------------------------------------------------------------------
You can respond by visiting:
http://rubyforge.org/tracker/?func=detail&atid=1971&aid=21395&group_id=494
_______________________________________________
libxml-devel mailing list
[email protected]
http://rubyforge.org/mailman/listinfo/libxml-devel