views:

403

answers:

2

Which one would you choose? My important attributes are (not in order)

  1. Support & Future enhancements
  2. Community & general knowledge base (on the Internet)
  3. Comprehensive (i.e proven to parse a wide range of *.*ml pages)
  4. Performance
  5. Memory Footprint (runtime, not the code-base)
+7  A: 

Pick nokogiri, for at least points 1-4, I don't know about (5).

It is way more popular than hpricot. See ruby-toolbox, among others.

Marc-André Lafortune
+4  A: 

Only pick hpricot if you don't have or can't install libxml on the computer you're using. If this is not the case then choose nokogiri, it's better in the 5 mentioned attributes than hpricot.

SztupY
Since literally a couple of minutes ago, there's also a pure-Java version of Nokogiri. So, you can use Nokogiri on JRuby without FFI and without libxml. (Google App Engine is one example where FFI is not possible.)
Jörg W Mittag