URL Decode to XML String

Does anyone know how to URL decode something to an XML String using
Ruby on Rails? I have a url parameter that comes as a string array.
I had to split it on a | which was easy. However, I cannot figure out
how to URL Decode one of the array positions to an XML String. Any
help would be greatly appreciated!

I need to figure out how to parse out the value of 0 which is called
result....an ideas?

<response><result>0</result><val1>20</val1><val2>test</val2><val3></
val3></response>

this link explains it well....and it works....

http://developer.yahoo.com/ruby/ruby-xml.html