Monday, March 8, 2010

Ruby and XML

Working with Ruby and XML can be a hassle if you use the default parser, REXML. Fortunately there is Nokogiri, a feature-rich XML and HTML parser with good performance and a significantly better API (albeit lacking in documentation). It is not a strict DOM parser, but it is SAX, SAX2 and XPath compliant, and can handle DOM-like work fairly decently so that you won't feel too much like a fish out of water if that is what you are comfortable with.

No comments: