From: David Masover Date: 2008-08-11T04:02:42+09:00 Subject: Re: Hpricot and path of an elememt On Sunday 10 August 2008 13:36:42 Li Chen wrote: > I use hpricot to load a page. Then I try to find the path for an > element "font"() in the page. So, you probably want: (doc / 'font') > doc.at("#header").xpath > #=> "//div[@id='header']" Right, that's searching for a tag that looks like this: