Hi, My question: ------------ I like to see immediate the results and not after the loop. During the loop, you can''t see any result! Is it possible to follow the results during the each loop? <% $xfiles = doSelect("host=\.*") $xfiles.each {|xfile| doc = Document.new File.new("/home/luc/Ruby/xml/#{xfile}") %> <%= "test=#{xfile}" %> <br> <% doc.elements.each("//ACL") { |element| if element.text() =~ /access-list/ %> <%= "CPE=#{xfile}" %> <br> <%= "=>FOUND: #{element.text()}"%> <br> <% end Thanks! -- Posted via http://www.ruby-forum.com/. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk -~----------~----~----~----~------~----~------~--~---