Hpricot wont parse <a> elements via XPath


#1

In this code (http://pastebin.com/m36de2949) unread_links will not read
the elements specified in line 12. I double-checked the XPath with
the XPather Firefox extension, and it is correct.

Is this some obscure difficulty with Hpricot? I seem to be doing
everything correctly.


#2

On May 25, 2009, at 5:39 PM, No Uu wrote:

In this code (http://pastebin.com/m36de2949) unread_links will not
read
the elements specified in line 12. I double-checked the XPath with
the XPather Firefox extension, and it is correct.

Is this some obscure difficulty with Hpricot? I seem to be doing
everything correctly.

It looks like those tags are first children of the so there is no preceding-sibling for them.

Perhaps you need to post what you expect to read in addition to the
xpath that you’re trying to use to find it.

-Rob

Rob B. http://agileconsultingllc.com
removed_email_address@domain.invalid