From: Venkat Akkineni Date: 2009-08-27T06:49:41+09:00 Subject: Question about Nokogiri xpath I am trying to parse an xml file using nokogiri. If any body has experience with nokogiri. I request you to help. Sample xml file. It can be seen that Column element has two child elements. But when I use input = Nokogiri::XML(File.new(file)) input.xpath('//table/column').each do |column| column.children.length end The result is 5. While the element is at index 1, element is at index 5. Does any one know why this is. Thanks venkat -- Posted via http://www.ruby-forum.com/.