Looking for XML parsers in Ruby

Hi,

I am looking for a validating XML parser for ruby. I found that there
are libxml-ruby and ruby interface to expat available. Could someone
please tell me
which is the better in terms of performance and functionality? I am
looking for a parser that is stable and has good performance.

Regards,
Ravindra

Ravindra Kumar wrote:

Hi,

I am looking for a validating XML parser for ruby. I found that there
are libxml-ruby and ruby interface to expat available. Could someone
please tell me
which is the better in terms of performance and functionality? I am
looking for a parser that is stable and has good performance.

Regards,
Ravindra

I searched the archives and found this:
http://www.xml.com/pub/a/2005/11/09/rexml-processing-xml-in-ruby.html

Maybe you just typed in the wrong thing to search for and missed this.

On Jan 29, 5:55 pm, Lloyd L. [email protected] wrote:

Ravindra

I searched the archives and found this:http://www.xml.com/pub/a/2005/11/09/rexml-processing-xml-in-ruby.html

Maybe you just typed in the wrong thing to search for and missed this.

Posted viahttp://www.ruby-forum.com/.

The OP said “validating XML parser”. As I remember, REXML was not yet
that - when I last used it a while back. Also just checked the REXML
site that is linked to in the xml.com article URL you quote above;
unless REXML is now at some other site or the page is not updated, the
site seems to still show that it is not a validating parser.

And it’s validating like the OP asked for. Double win!! :slight_smile:

–Jeremy

On Jan 29, 2008 6:55 PM, Bryan D. [email protected] wrote:

http://www.xml.com/pub/a/2005/11/09/rexml-processing-xml-in-ruby.html

Maybe you just typed in the wrong thing to search for and missed this.

Posted via http://www.ruby-forum.com/.


http://www.jeremymcanally.com/

My books:
Ruby in Practice

My free Ruby e-book
http://www.humblelittlerubybook.com/

My blogs:
http://www.mrneighborly.com/
http://www.rubyinpractice.com/

Jeremy McAnally wrote:

And it’s validating like the OP asked for. Double win!! :slight_smile:

Thank you all for your responses. Actually I am aware of libxml-ruby. I
just wanted to know if there is any better validating parser for ruby
other than libxml. It would be great if someone could give a brief
comparison otherwise libxml-ruby is good enough for my purpose.

–Jeremy

On Jan 29, 2008 6:55 PM, Bryan D. [email protected] wrote:

http://www.xml.com/pub/a/2005/11/09/rexml-processing-xml-in-ruby.html

Maybe you just typed in the wrong thing to search for and missed this.

Posted via http://www.ruby-forum.com/.


http://www.jeremymcanally.com/

My books:
Ruby in Practice
http://www.manning.com/mcanally/

My free Ruby e-book
http://www.humblelittlerubybook.com/

My blogs:
http://www.mrneighborly.com/
http://www.rubyinpractice.com/

Don’t use REXML if performance is important to you. libxml-ruby is
10-100 times faster than REXML.

-Bryan

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs