Matan S. wrote in post #1052466:
Find.find('C:\Somedir') do |f|
if f.match(/\data.xml\Z/)
doc = Nokogiri::XML(f)
You are parsing the file name as XML. You rather want
doc = File.open(f, 'rb') {|io| Nokogiri::XML(io)}
Cheers
robert
···
--
Posted via http://www.ruby-forum.com/\.