From: Hassan Schroeder Date: 2010-08-09T00:53:25+09:00 Subject: Re: Nokogiri help On Sun, Aug 8, 2010 at 8:35 AM, R.. Kumar 1.9.1 OSX wrote: > I am trying to access some particular children in a document. I find > myself having to loop (several levels) through children checking name == > "xxx". I am wondering whething there is more direct way of getting the > same. Here's a simple sample. > > I am trying to get the href of a class called prevnext (on browser it is > "next"). > doc.css('p.nextprev').each do |link| doc.css('p.nextprev/a').each do |a| ... -- Hassan Schroeder ------------------------ hassan.schroeder@gmail.com twitter: @hassan