r3 - 15 Oct 2007 - 15:48:03 - HecPeAreYou are here: TWiki >  Rails Web > XmlNotes
require 'net/http'

response = Net::HTTP.get_response('...','/aa.txt')

XmlSimple? .new.xml_in(response.body)["created-at"]

response = Net::HTTP.get_response(URI.parse('http://localhost:3000/info/post.xml?post=http//dsdsd.com'))

-- HecPeAre - 22 Sep 2007

a=XmlSimple.new.xml_in(response.body)

a["transfer"].each{|t| puts t["id"][0]["content"] + "; " + t["amount"][0]["content"]}

-- HecPeAre - 22 Sep 2007

response = Net::HTTP.get_response(URI.parse(url))

a=XmlSimple.new.xml_in(response.body)

instantiate_collection(a)

-- HecPeAre - 15 Oct 2007

 
Edit | Attach | Printable | Raw View | Backlinks: Web, All Webs | History: r3 < r2 < r1 | More topic actions
 
Powered by TWiki

This site is powered by the TWiki collaboration platformCopyright © by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding TWiki? Send feedback