[lnkForumImage]
TotalShareware - Download Free Software

Confronta i prezzi di migliaia di prodotti.
Asp Forum
 Home | Login | Register | Search 


 

No Uu

5/25/2009 9:40:00 PM

In this code (http://pastebin.com...) unread_links will not read
the <a> 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.
--
Posted via http://www.ruby-....

1 Answer

Rob Biedenharn

5/25/2009 10:23:00 PM

0

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

> In this code (http://pastebin.com...) unread_links will not
> read
> the <a> 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 <a> tags are first children of the <td
class="row1"> 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 Biedenharn http://agileconsult...
Rob@AgileConsultingLLC.com