Celine
12/19/2007 9:41:00 PM
On 18 déc, 23:54, Chris Shea <ch...@ruby.tie-rack.org> wrote:
> > > On Dec 18, 11:21 pm, Chris Shea <ch...@ruby.tie-rack.org> wrote:
> > Looking at the page source, the span element that contains the value
> > actually has an id (yfs_l10_^ixic), but it doesn't look stable, does
> > it?
>
> I take that back. That id is almost definitely stable.
>
> doc.at('span[@id="yfs_l10_^ixic"]')
>
> Chris
Yes, thanks, it runs.
There's something I can't understand : in the Xpath expression I
posted later, when a node has several child DIVs, I access them with
an index (div[2]...), but in Hpricot syntax, DIVs aren't accessed
using an index. So, what trick Hpricot uses to locate "the good" div ?