From: James Britt Date: 2005-08-09T12:20:23+09:00 Subject: Re: Loading XML file from web Szymon Rozga wrote: > 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) Or use open-uri. http://www.ruby-doc.org/stdlib/libdoc/open-uri/rdoc/ James -- http://www.ruby-doc.org - The Ruby Documentation Site http://www.rubyxml.com - News, Articles, and Listings for Ruby & XML http://www.rubystuff.com - The Ruby Store for Ruby Stuff http://www.jamesbritt.com - Playing with Better Toys