This project is archived and is in readonly mode.
Add JDOM (JRuby) as XmlMini backend
Reported by Stephen Bannasch | March 15th, 2009 @ 10:53 AM
I've added a JDOM backend for XmlMini which is only available when running under JRuby.
I used the form of the REXML backend and adapted the tests from nokogiri_engine_test.rb.
There is one test from nokogiri_engine_test.rb which I commented out:
on line 29 of jdom_engine_test.rb is this statement:
assert_equal 'logo.png', file.original_filename
(on line 35 in nokogiri_engine_test.rb).
I don't know where 'original_filename' is supposed to come from?
In addition there is a spurious Java stack trace in the middle of the test which doesn't cause any errors or failures.
There is a reference to this issue here:
http://jira.codehaus.org/browse/...
but that issue is closed. I'll try an get it re-opened.
Here are the results on my MacBook Pro running this benchmark:
http://github.com/stepheneb/rail...
jruby 1.3.0 (ruby 1.8.6 patchlevel 287) (2009-03-13 rev 6586)
[amd64-java], platform: Java, version 1.6.0_03-p3
----------------------------------------------------------------
rexml 3.84
jdom 1.25
Ruby version: MRI 1.8.6 (2008-03-03 rev 114),
platform: universal-darwin9.0
-----------------------------------------------------------------
rexml 13.079
libxml 0.489
nokogiri 7.954
which is commented out
Comments and changes to this ticket
-
Stephen Bannasch March 17th, 2009 @ 01:47 PM
- Tag changed from activesupport, backend, jruby, xmlmini to activesupport, backend, jdom, jruby, patch, xml_mini
Most of the spurious "noise" generated by JRuby when running the tests is gone after updating to the just released v0.4 of jruby-openssl.
-
Stephen Bannasch March 17th, 2009 @ 01:50 PM
The noise produced by running the tests in the previous comment relates to work I'm reporting here #2258 about generalizing the tests for the alternate xml_mini backends
-
Nick Sieger April 24th, 2009 @ 11:38 PM
- Would be nice to have an alternative for speeding this up on JRuby until Nokogiri is JRuby-compatible.
-
Jeremy Kemper April 27th, 2009 @ 12:22 AM
- State changed from new to committed
- Milestone cleared.
-
anon November 26th, 2009 @ 09:16 PM
- Assigned user set to Carl Lerche
Have you looked at vtd-xml, it is the latest and most advanced XML processing API
-
Ryan Bigg October 9th, 2010 @ 09:48 PM
- Tag cleared.
- Importance changed from to Low
Automatic cleanup of spam.
Create your profile
Help contribute to this project by taking a few moments to create your personal profile. Create your profile »
<h2 style="font-size: 14px">Tickets have moved to Github</h2>
The new ticket tracker is available at <a href="https://github.com/rails/rails/issues">https://github.com/rails/rails/issues</a>
People watching this ticket
Attachments
Referenced by
- 2258 libxml xml_mini backend producing incorrect hashes for JDOM backend, see: #2238