You might be better served by running this in a loop, and iterating as many times as you have source:
<table>
<tr>
<td>foo</td>
<td>bar</td>
<td>baz</td>
</tr>
</table>
doc.css('td').each do |td|
td.whatever()
end
That way it doesn't matter at all how many of these you have. Naturally, you can nest these loops, so you could have N number of trs and N number of tds within each tr, and so forth.
Walter
>
> --
> You received this message because you are subscribed to the Google Groups "nokogiri-talk" group.
> To post to this group, send email to nokogi...@googlegroups.com.
> To unsubscribe from this group, send email to nokogiri-tal...@googlegroups.com.
> For more options, visit this group at http://groups.google.com/group/nokogiri-talk?hl=en.
>