From: R.. Kumar 1.9.1 OSX on
Mike Dalessio wrote:
> On Sun, Aug 8, 2010 at 11:35 AM, R.. Kumar 1.9.1 OSX
> <sentinel1879(a)gmail.com
>> wrote:
>
>
> For advanced usage like capturing attribute values in a Nokogiri search,
> you
> should use Node#xpath:
>
> doc = Nokogiri::HTML(open('http://www.reddit.com/r/programming/'))
> puts doc.xpath("//p[@class='nextprev']/a/@href").inspect
> # => [#<Nokogiri::XML::Attr:0x3fa59149a0cc name="href" value="
> http://www.reddit.com/r/programming/?count=25&after=t3_cygpc">]

thanks a lot to both answers.

1) Is there any doc that has advanced info or examples, the tutorial had
simple examples.

2) Also, is Nokogiri the right tool for this job, or is Scrubyt more
suitable.

reg
rahul
--
Posted via http://www.ruby-forum.com/.