XML Parser for Ruby

Look for something like xerces to parse the xml file into ruby. I saw my own REXML processor and the other was hpricot (although I cannot find the hpricot documentation, all the links seem to be dead). I am looking for something that will parse an XML document through SAX2 in ruby.

TIA.

+6
ruby xml parsing xerces sax
source share
3 answers

I succeeded with the Nokogiri SAX Parser

+9
source share

Beyond those already mentioned, another alternative is probably LibXML

+1
source share

There are two quick BLAST XML parsers for Ruby that are easy to understand with iterative lazy parsing examples using the C extension for low-level XML parsing. Both are based on libxml2 and Nokogiri. Nokogiri, because the performance is swinging. See http://biogems.info for two parsers.

0
source share

All Articles