Asp Forum
Home
|
Login
|
Register
|
Search
Forums
>
comp.lang.ruby
Hpricot wont parse
elements via XPath
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
Servizio di avviso nuovi messaggi
Ricevi direttamente nella tua mail i nuovi messaggi per
Hpricot wont parse
elements via XPath
Inserendo la tua e-mail nella casella sotto, riceverai un avviso tramite posta elettronica ogni volta che il motore di ricerca troverà un nuovo messaggio per te
Il servizio è completamente GRATUITO!
x
Login to ForumsZone
Login with Google
Login with E-Mail & Password