From: John Kennedy Date: 2010-05-20T23:21:31+09:00 Subject: Re: VISIT A URL PROGRAMATICALLY To get the nonce node, just use an xpath: require 'rexml/document' require 'open-uri' nonce = nil open('http://api.evdb.com/rest/users/login?app_key=ct2hJqTCg4XLCP5h') { |f| doc = REXML::Document.new(f.read) nonce = XPath.first(doc, "/error/nonce") } -- Posted via http://www.ruby-forum.com/.