thanks a lot,  I am going to have a look at Nokogiri

yves
On 8 fév, 17:46, Mat Brown <[email protected]> wrote:
> You can use Net::HTTP, which is part of the standard Ruby library, to make
> the external request. REXML, also part of the standard library, can parse
> it, though I'd suggest using Nokogiri for that instead.
>
> On Feb 8, 2010 11:43 AM, "Erwin" <[email protected]> wrote:
>
> I have to write a call from my rails app to an external URL :
>
> http://999:[email protected]/apis/media.php?action=createCollection&collection_id=12
>  3
>
> then I should get back an XML answer , to be parsed (I need to reuse
> these info into my web app)
>
> <collection>
>  <id>180</id>
>  <partner_id>2</partner_id>
>  <name>myNewCollection</name>
>  <description>this is my new sports collection</description>
>  <collection_type>static</collection_type>
>  <thumbnail_media_id/>
>  <token>7fd77f35ba63b07a19d8eb995d66215f</token>
>  <parent_collection_id>123</parent_collection_id>
>  <path>/123/180</path>
> </collection>
>
> where should I look for info on it ?
> as I don't supply a return URL, I don't know how to handle the answer
> in Rails ...
>
> thanks for your help..
>
> yves
>
> --
> You received this message because you are subscribed to the Google Groups
> "Ruby on Rails: Talk" group.
> To post to this group, send email to [email protected].
> To unsubscribe from this group, send email to
> [email protected]<rubyonrails-talk%2Bunsubscrib 
> [email protected]>
> .
> For more options, visit this group 
> athttp://groups.google.com/group/rubyonrails-talk?hl=en.

-- 
You received this message because you are subscribed to the Google Groups "Ruby 
on Rails: Talk" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-talk?hl=en.

Reply via email to