1 # This is required otherwise libxml writes out memory errors to
2 # the standard output and exits uncleanly
3 # Changed method due to deprecation of the old register_error_handler
4 # http://libxml.rubyforge.org/rdoc/classes/LibXML/XML/Parser.html#M000076
5 # So set_handler is used instead
6 # http://libxml.rubyforge.org/rdoc/classes/LibXML/XML/Error.html#M000334
7 LibXML::XML::Error.set_handler do |message|