use nokogiri instead of hpricot parse xml