From: Mark Nielsen Date: 2008-12-10T10:37:26+09:00 Subject: Re: Scraping 3rd element with hpricot Michael Libby wrote: > > puts (doc/"#{xpath}")[n].inner_html # we're counting from 0 here, so > to get the 3rd element n=2 > Thanks Michael, sometimes it's right in front of you. I was trying to add a dot before [n]... --Mark -- Posted via http://www.ruby-forum.com/.