Lighthouse has a new layout. Prefer the old one? Return to the old layout, and switch back any time from the link at the top of each page.

This project is archived and is in readonly mode.

Add JDOM (JRuby) as XmlMini backend

#2238

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

http://jira.codehaus.org/browse/...

Reported by Stephen Bannasch · March 15th, 2009 @ 10:53 AM

State: committed
Milestone: none
Assigned to: Carl Lerche Carl Lerche
Importance: Low

Activity

  1. Stephen Bannasch
    Stephen Bannasch
    • 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.

    See: http://www.nabble.com/-ANN--jrub...

    March 17th, 2009 @ 01:47 PM

  2. Stephen Bannasch
    Stephen Bannasch

    The noise produced by running the tests in the previous comment relates to work I'm reporting here #2258 libxml xml_mini backend producing incorrect hashes about generalizing the tests for the alternate xml_mini backends

    March 17th, 2009 @ 01:50 PM

  3. hooligan495
  4. Nick Sieger
    Nick Sieger
    1. Would be nice to have an alternative for speeding this up on JRuby until Nokogiri is JRuby-compatible.

    April 24th, 2009 @ 11:38 PM

  5. Nick Sieger
    Nick Sieger

    Formatting fail. In other words, +1

    April 24th, 2009 @ 11:39 PM

  6. Jeremy Kemper
    Jeremy Kemper
    • State changed from new to committed
    • Milestone cleared.

    April 27th, 2009 @ 12:22 AM

  7. anon
    anon
    • Assigned user set to Carl Lerche

    Have you looked at vtd-xml, it is the latest and most advanced XML processing API

    http://vtd-xml.sf.net

    November 26th, 2009 @ 09:16 PM

  8. Ryan Bigg
    Ryan Bigg
    • Tag cleared.
    • Importance changed from to Low

    Automatic cleanup of spam.

    October 9th, 2010 @ 09:48 PM