Martin DeMello wrote:

> Is there any ruby equivalent of perl's HTML::Treebuilder?
> (<http://www.enstimac.fr/Perl/perl5.6.1/site_perl/5.6.1/HTML/Tree.html>)
> 
> If not, where would a good starting point be to reimplement it? Or would I
> be better off just trying to port the perl code from scratch?
> 

I'm writing one right now (as in: in the next couple of days). I have the 
tag recognition, optional tag handling, etc. done, so I can follow 
structure properly.

The Perl code can be done much easier in Ruby.

I built on top of the html-parser module.