Problum in parsing xml

Hi All

Can any one suggest me the wrong in the bellow code
<%
require ‘rubygems’
require ‘hpricot’

doch = Hpricot(@resp_data.receive_string)
doch.search(‘Record’).each do |rec|
rec.search(“Property”).each do |prop|
puts prop.attributes[‘Key’]
end
end
%>

Where @resp_data is the following xml.

<soap:Envelope xmlns:soap=“http://schemas.xmlsoap.org/soap/envelope/”>
soap:Body





Gadgets






</soap:Body>
</soap:Envelope>

Thanks in advance
Chinna

Hi, what is your problem?

I run your code and got P_Interest back…

Cheers.

comopasta Gr wrote:

Hi, what is your problem?

I run your code and got P_Interest back…

Cheers.

Hi Comopasta,

Thanks for replay. I got solution, Actually my XML is the out put of web
service. The problem is, i got each Element name in the XML as small
case even those are in cap’s in web service response like to
, i was trying to get in my ruby program, so that is
the problem.

Thanks
Chinna