From: John Joyce Date: 2007-04-24T13:44:39+09:00 Subject: Re: HTTP requests Perhaps they're serving xhtml? then it is xml. On Apr 24, 2007, at 12:51 PM, Peter Kemp wrote: > Hi all, > > Im trying to retrieve an xml document from a website but all i get is > the html > > I know their is a way to get this same page via xml > > require 'net/http' > require "rexml/document" > > url = > 'http://jira.atlassian.com/secure/BrowseProjects.jspa? > =&os_username=soaptester&os_password=soaptester' > resp = Net::HTTP.get_response(URI.parse(url)) > data = resp.body > puts(data) > > doc = REXML::Document.new(data) > > any help would be great > > -- > Posted via http://www.ruby-forum.com/. >