Reputation: 10370
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
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
Reputation: 52326
Apart from those already mentioned, the other mainstream alternative is probably LibXML
Upvotes: 1