From: Pen Ttt Date: 2010-07-05T11:00:38+09:00 Subject: strange xpath output /home/pt/jiexi content is: require 'rubygems' require 'nokogiri' doc = Nokogiri::HTML.parse(open('/home/pt/jiexi')) table=doc.xpath('//ul[@id="ul_list"]/li/a') puts table output irb(main):005:0> puts table => nil puts table.xpath('//ul') irb(main):006:0> puts table.xpath('//ul') what i think is the script "puts table.xpath('//ul')" will not create any output. how strange it is to get the result,would you mind to tell me why? -- Posted via http://www.ruby-forum.com/.