require 'xml/libxml' for file in Dir['/home/rubys/tmp/atom/*.atom'] XML::Document.file(file) end