From: Pen Ttt Date: 2010-09-07T14:07:03+09:00 Subject: how to write this xpath? there is an html file
ok Sep 10 | Oct 10 | Dec 10
123 567
when i open it with firefox,the output is : ok Sep 10 | Oct 10 | Dec 10 123 567 what i want to get is ok Sep 10 | Oct 10 | Dec 10 here is my codes require 'rubygems' require 'nokogiri' web='/home/test' doc = Nokogiri::HTML.parse(open(web)) data=doc.xpath('/html/body/table/tr/td') puts data i get ok Sep 10 | Oct 10 | Dec 10
123 567
how can i get : ok Sep 10 | Oct 10 | Dec 10 -- Posted via http://www.ruby-forum.com/.