Ryan Davis
1/9/2009 10:54:00 PM
On Jan 9, 2009, at 11:16 , goodieboy wrote:
> OK, was completely sold on Hpricot and now am having my doubts. I
> can't seem to get to any of the docs (the site is down). Is it still
> being developed? Who are the developers? I love the API and really am
> hoping to use it...
>
> So then I tried out Nokogiri and it works well. The bug that Hpricot
> had (re-naming a node only names the open-tag) is not present in
> Nokogiri. Great! But it's built on libxml, which I don't know much
> about. It seems a little more heavy weight than Hpricot. I also heard
> that the main developer for libxml doesn't have much time to devote to
> the project.
hpricot drops the ball in a lot of ways and is much more heavyweight
than nokogiri. Parsing an 8 meg itunes xml file takes over a gig in
hpricot (according to my students) and nokogiri zipped right through it.
The libxml developer doesn't need to devote much time to the project
(assuming you mean libxml itself, not nokogiri). It is a very mature
library. On the other hand, hpricot has had a lot of open bugs for a
long time and they've not been touched one way or another. I find
Aaron Patterson very responsive to my bug reports (but I'm biased,
he's just down the street--look at the bug tracker on rubyforge for
less biased data).