ActionWebService - need response in XML

Hi i have used actionwebservice gem.
I have processed a SOAP request & in the service api i expect an api_key
& url.

class ServicesApi < ActionWebService::API::Base
api_method :verify_url, :expects =>
[{:api_key=>:string},{:url=>:string}], :returns => [{:response
=>:string}]
end

Processing the api_key & url, i have generated an XML. when i return
response, the XML is converted into string.

ā€œ<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<records type="array">\n
\n nil\n
url is Invalid \n
102\n Failure\n
\n\nā€

The response which i expect is XML.

Is there any method to convert the string to XML?
Or is there any way to return the response as a XML?

Thanks,
Srikanth J

I have used xml_in method from xmlsimple,
Its working now

Thanks,
Srikanth J

http://srikanthjeeva.blogspot.com