From: Celine Date: 2007-12-20T06:45:00+09:00 Subject: Re: Hpricot syntax different from Xpath ? On 18 déc, 23:54, Chris Shea wrote: > > > On Dec 18, 11:21 pm, Chris Shea 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 ?