jmq
jmq

Reputation: 10370

XML Parser for Ruby

Looking for something similar to xerces for parsing an xml file in ruby. I saw the native processor REXML and another called hpricot (though I can't find any documentation on hpricot, the links all appear to be dead). I'm looking for something that would parse an xml document via SAX2 in ruby.

TIA.

Upvotes: 6

Views: 3871

Answers (3)

pjotrp
pjotrp

Reputation: 2567

There are two fast BLAST XML parsers for Ruby, which are easy to understand examples of iterative lazy parsing, using a C extension for the low-level XML parsing. Both are based on libxml2 and Nokogiri. Nokogiri because the performance rocks. See http://biogems.info to find the two parsers.

Upvotes: 0

Mike Woodhouse
Mike Woodhouse

Reputation: 52326

Apart from those already mentioned, the other mainstream alternative is probably LibXML

Upvotes: 1

Rob Di Marco
Rob Di Marco

Reputation: 44962

I've been successful with the Nokogiri SAX Parser

Upvotes: 9

Related Questions