From: Li Chen Date: 2008-08-13T05:57:00+09:00 Subject: Re: Hpricot and xpath Hi all, I find that in my code 'xpath' only works if the attribute is 'id'. How to explain it? Another question: is it possible to get the path/tree relationship of a tag(including its attributes)in the following format using hpricot or the position of an interested tag within a html page/file: tag1/tag2/
Thanks, Li ###############tag.txt####################### #I change id="header" to class="header"
ABC
tag1.rb:6: undefined method `xpath' for nil:NilClass (NoMethodError) >Exit code: 1 -- Posted via http://www.ruby-forum.com/.