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?

020test</
val3>

this link explains it well…and it works…

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