Hi
I’m currently doing mostly my ruby work on jruby and really enjoying it,
it makes deploying to app servers so easy :). However being that there
is so few good xml libraries on ruby i’ve to use MRI to be able to
access libxml (REXML isn’t really cutting it).
I read Charles post on Charlie S.s blog about the possibilities to
build a Java backend to libxml and i was just curious if that going to
happend ? I would love having libxml on Jruby
Regards
/Mikael
To unsubscribe from this list, please visit:
http://xircles.codehaus.org/manage_email
Mikael R. wrote:
Hi
I’m currently doing mostly my ruby work on jruby and really enjoying it,
it makes deploying to app servers so easy :). However being that there
is so few good xml libraries on ruby i’ve to use MRI to be able to
access libxml (REXML isn’t really cutting it).
I read Charles post on Charlie S.s blog about the possibilities to
build a Java backend to libxml and i was just curious if that going to
happend ? I would love having libxml on Jruby
Unfortunately nobody’s working on it right now. We’ve only got a
handleful of folks hacking on JRuby these days unfortunately. libxml
probably wouldn’t be a hard library to emulate with the Java XML
libraries…it would just be a little tedious. I’d really, really like
to see it done, but at the moment there’s just no resources to work on
it. Anyone feel like tackling it?
To unsubscribe from this list, please visit:
http://xircles.codehaus.org/manage_email
On Sep 14, 2008, at 12:29 PM, Charles Oliver N. wrote:
Unfortunately nobody’s working on it right now. We’ve only got a
handleful of folks hacking on JRuby these days unfortunately. libxml
probably wouldn’t be a hard library to emulate with the Java XML
libraries…it would just be a little tedious. I’d really, really
like to see it done, but at the moment there’s just no resources to
work on it. Anyone feel like tackling it?
I recently released a new library for writing XML called WAX. It can
be installed as a gem. Check it out at http://ociweb.com/wax.
Currently there are versions for Java and Ruby. For details on the
Ruby version, click the “WAX for Ruby” link at the top of that page.
It won’t help with reading XML, but it’s great for writing it!
Mark V.
To unsubscribe from this list, please visit:
http://xircles.codehaus.org/manage_email
Mark V. wrote:
going to happend ? I would love having libxml on Jruby
be installed as a gem. Check it out at http://ociweb.com/wax.
Currently there are versions for Java and Ruby. For details on the
Ruby version, click the “WAX for Ruby” link at the top of that page.
It won’t help with reading XML, but it’s great for writing it!
The java xom library is worth a look if using jruby. I have found it
easy to use in jruby and lots of examples (in java) and documentation to
help.
Namespaces are handled well.
http://www.xom.nu/
From the documentation:-
XOM is the only XML API that makes no compromises on correctness. XOM
only accepts namespace well-formed XML documents, and only allows you to
create namespace well-formed XML documents. (In fact, it’s a little
stricter than that: it actually guarantees that all documents are
round-trippable and have well-defined XML infosets.) XOM manages your
XML so you don’t have to. With XOM, you can focus on the unique value of
your application, and trust XOM to get the XML right.
Paul F.
To unsubscribe from this list, please visit:
http://xircles.codehaus.org/manage_email
I have had pretty good success with Hpricot. I had to migrate from C
Ruby to
JRuby, and libxml was one of the gems i was using in my app. I had to
port
to Hpricot and things seem to work fine so far.
Adam
On Sun, Sep 14, 2008 at 1:29 PM, Charles Oliver N. <
I’ll second Hpricot, I moved to it from REXML, and got orders of magnitude speed improvement and the existing code was pretty easy to move over. Be sure to read the doco though, as by default it assumes it’s parsing HTML.
Also, the ability to support both JRuby & MRI Ruby was a win for me, as I developed locally using MRI but deployed under JRuby.
Tom
Some of the info I pulled together creating an initial benchmark last
March comparing rexml, libxml, hpricot, and jdom might be helpful:
http://www.nabble.com/comparing-xml-parsing-in-JRuby-and-MRI-td16268560.html#a16268560
To unsubscribe from this list, please visit:
http://xircles.codehaus.org/manage_email
I’ll second Hpricot, I moved to it from REXML, and got orders of
magnitude speed improvement and the existing code was pretty easy to
move over. Be sure to read the doco though, as by default it assumes
it’s parsing HTML.
Also, the ability to support both JRuby & MRI Ruby was a win for me,
as I developed locally using MRI but deployed under JRuby.
Tom
On 14/09/2008, at 7:46 PM, AD wrote:
handleful of folks hacking on JRuby these days unfortunately. libxml
http://xircles.codehaus.org/manage_email
–
tom adams | e:tomjadamsgmail.com
To unsubscribe from this list, please visit:
http://xircles.codehaus.org/manage_email