From: jbshaldane@... (haldane) Date: 2004-07-07T05:32:37+09:00 Subject: REXML problem I am trying to read from a zlib GzipReader with REXML (actually with SOAP, it's using REXML). But it fails with "Unknown source type!" Can this be fixed in document.rb? The code looks like this: if source.kind_of? Source # do nothing elsif source.kind_of? IO source = IOSource.new(source) elsif source.kind_of? String source = Source.new source else raise "Unknown source type!" end The trouble is that GzipReader is not a subclass of IO. However, it behaves enough like an IO object to be used as one. A case for duck typing? Stephen Sykes