From: Kevin Olbrich Date: 2005-08-09T12:33:13+09:00 Subject: Re: Loading XML file from web How about this.... -- require "open-uri" open("http://www.digg.com/rss/index.xml") do |file| file.each_line {|line| puts line} end -- This will just dump the contents of the file. -Kevin -----Original Message----- From: Szymon Rozga [mailto:szymon.rozga@gmail.com] Sent: Monday, August 08, 2005 11:11 PM To: ruby-talk ML Subject: Re: Loading XML file from web This is pretty much straight from the documentation of Net::HTTP require 'net/http' Net::HTTP.start('www.digg.com', 80) { |http| response = http.get('rss/index.xml') response.body # this is the text of www.digg.com/rss/index.xml } so simply now create an instance of Document with the text response.body (I haven't tried this out myself, but should work)