Bugs item #21395, was opened at 2008-07-30 13:53 You can respond by visiting: http://rubyforge.org/tracker/?func=detail&atid=1971&aid=21395&group_id=494
Category: None Group: None >Status: Closed >Resolution: Rejected Priority: 3 Submitted By: Nobody (None) >Assigned to: Charlie Savage (cfis) 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: Charlie Savage (cfis) Date: 2008-08-20 02:02 Message: Since its easy enough to do this: xp.string = io.string I don't think this is worth adding to libxml. Thus closing this bug. ---------------------------------------------------------------------- Comment By: Erik Hollensbe (erikh) Date: 2008-07-30 15: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 libxml-devel@rubyforge.org http://rubyforge.org/mailman/listinfo/libxml-devel