This project is archived and is in readonly mode.

#2238 ✓committed
Stephen Bannasch

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:

but that issue is closed. I'll try an get it re-opened.

Here are the results on my MacBook Pro running this benchmark:

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

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=""></a>

People watching this ticket


Referenced by