Subject: nokogiri xpath method
	Date: dom 03 feb 13 04:41:53 +0900

Quoting gaurav shirodkar (lists / ruby-forum.com):

> india.rb:22:in `<main>': undefined method `text' for nil:NilClass
> (NoMethodError
> )

What's your problem there? Check line 22 of your source code. It has
to be that one of the CSS tags you ask for does not exist in your
page. Instead of immediately asking for, let's say

> page1.css("#GridView1 th")[0].text

you should first check if 

page1.css("#GridView1 th")

is not null. Or maybe catch the exception? You should refactor...

Carlo

-- 
  *         Se la Strada e la sua Virtu' non fossero state messe da parte,
* K * Carlo E. Prelz - fluido / fluido.as             che bisogno ci sarebbe
  *               di parlare tanto di amore e di rettitudine? (Chuang-Tzu)