tenderlove/nokogiri — Issue #547: JRuby - Issues parsing valid XML
Author: sgonyea
Created: 2011-10-10 20:07:38+00:00
State: open

Nokogiri seems to have issues parsing the file:

https://github.com/sgonyea/activewarehouse-etl/blob/master/spec/fixtures/data/nokogiri.xml

To reproduce the issue that I experienced (running JRuby 1.6.4), please do the following:

git clone git://github.com/sgonyea/activewarehouse-etl.git
cd activewarehouse-etl
which bundle || gem install bundler
bundle install
rake spec

It appears to be choking over the DOCTYPE. bbrowning in #jruby discovered that changing:

to

Seems to fix the issue. The tests pass in MRI and Rubinius, so this appears to be JRuby-specific.

Thank you.