From: Srijayanth Sridhar Date: 2008-05-27T13:38:37+09:00 Subject: Question on OpenURI Hello, For the following piece of code: #! /usr/bin/ruby require 'open-uri' require 'rexml/document' require 'rexml/xpath' doc1 = open("http://www.cricinfo.com/rss/livescores.xml") puts doc1.class doc2 = open("http://ws.audioscrobbler.com/1.0/artist/Autechre/toptags.xml") puts doc2.class I get the following output: moonwolf@trantor:~/ruby/lastfm$ ./scrape.rb StringIO Tempfile The question I have is why openuri treats two similar entities as two different classes? Thank you, Jayanth