# File lib/parsers/rss.rb, line 28 def self.parse(xml, loose) begin rss = parser.parse(xml) rescue Exception => e #puts "Parser #{parser} failed because #{e.message.gsub("\n",', ')}" return nil end # check for channel to make sure we're only dealing with RSS. rss && rss.respond_to?(:channel) ? package(rss, loose) : nil end