Updated to libxml-ruby 2.0.5 and fixed code accordingly.