looking for XML parsers in Ruby

R

Ravindra Kumar

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
 
L

Lloyd Linklater

Ravindra said:
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.
 
V

vasudevram

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.

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.

- Vasudev Ram
Dancing Bison Enterprises
Software consulting and training
Biz site: http://www.dancingbison.com
Blog (on software innovation): http://jugad.livejournal.com
Quick and easy PDF creation toolkit: http://www.dancingbison.com/products.html
 
B

Bryan Duxbury

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

-Bryan
 
J

Jeremy McAnally

And it's validating like the OP asked for. Double win!! :)

--Jeremy

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

-Bryan


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.



--
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/
 
R

Ravindra Kumar

Jeremy said:
And it's validating like the OP asked for. Double win!! :)

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.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,999
Messages
2,570,243
Members
46,838
Latest member
KandiceChi

Latest Threads

Top