I am making the following request:
uri = URI.parse(url)
session = Net::HTTP.new(uri.host, uri.port)
headers = {}
res = session.start do |http|
http.get(request_url, headers)
end
Response looks like this:
<string xmlns="http://xxx">
some string
</string>
Is there some fast solution to parse the above response and get that some string. I can get it using a regexp but I would like use something which exists in Ruby.
Nokogirito parseres.