Have the below xml
test test1 testdata 21546i need to get data in MetaString tag to be displayed
doc2 = Hpricot(xml2)
doc2.search("/metas").each do |meta|
meta.search(’/Meta’).each do |metastring|
print("\n"+(metastring.at("/MetaString").inner_html))
end
end
i get the below error nessage
NoMethodError (undefined method `inner_html’ for nil:NilClass
Kindly help