Thanks Peter ,
Your solution worked. and I just wanted to know , where can I find the 
syntax for Hpricot like the one you gave as a solution,

thanks,
dhanasekaran

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