From: Li Chen Date: 2008-08-11T03:36:42+09:00 Subject: Hpricot and path of an elememt Hi all, I use hpricot to load a page. Then I try to find the path for an element "font"() in the page. Here is the tutorial (http://code.whytheluckystiff.net/hpricot/wiki/HpricotBasics): doc.at("#header").xpath #=> "//div[@id='header']" here is my code: puts doc.at("#font").xpath When I run the code Ruby complains undefined method for xpath. I wonder if I have problem understanding the tutorial. Thanks, Li -- Posted via http://www.ruby-forum.com/.