Try and improve libxml error handling.
authorTom Hughes <tom@compton.nu>
Sun, 20 Jul 2008 17:08:27 +0000 (17:08 +0000)
committerTom Hughes <tom@compton.nu>
Sun, 20 Jul 2008 17:08:27 +0000 (17:08 +0000)
config/initializers/libxml.rb [new file with mode: 0644]

diff --git a/config/initializers/libxml.rb b/config/initializers/libxml.rb
new file mode 100644 (file)
index 0000000..8725215
--- /dev/null
@@ -0,0 +1,7 @@
+require 'rubygems'
+gem 'libxml-ruby', '>= 0.8.1'
+require 'libxml'
+
+LibXML::XML::Parser.register_error_handler do |message|
+  raise message
+end