Hi,
can somebody suggest a good parser that offers:
- multiple encodings
- production-like quality
- dom tree manipulation
- good performance
is REXML the only choice or are there others?
Cheers
Peter
Hi,
can somebody suggest a good parser that offers:
is REXML the only choice or are there others?
Cheers
Peter
Pete wrote:
Hi,
can somebody suggest a good parser that offers:
- multiple encodings
- production-like quality
- dom tree manipulation
- good performance
is REXML the only choice or are there others?
There’s also libxml and probably others:
http://www.google.com/search?q=ruby+xml
However, note that DOM and performance nearly automatically exclude each
other. Depending on what you do stream parsing is almost always faster
and uses less memory.
Kind regards
robert
If you are working under windows, it seems to be difficult to get some
of the other XML libraries to compile. Like the previous poster said,
libXml should be pretty speedy. Rexml is the only pure ruby library
though (there are some built on top of rexml).
Try parsing a document, and see how the performance turns out, if it
really is too slow for you try the following things:
Enjoy,
.adam sanderson
This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.
Sponsor our Newsletter | Privacy Policy | Terms of Service | Remote Ruby Jobs