From: Smp Mp Date: 2010-04-08T11:21:26+09:00 Subject: Hpricot inner_html Have the below xml test test1 testdata 21546 i 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 -- Posted via http://www.ruby-forum.com/.