Velocity Reviews

Velocity Reviews (http://www.velocityreviews.com/forums/index.php)
-   Ruby (http://www.velocityreviews.com/forums/f66-ruby.html)
-   -   Equivalent of Perl HTML::TreeBuilder? (http://www.velocityreviews.com/forums/t815883-equivalent-of-perl-html-treebuilder.html)

John W. Kennedy 07-29-2004 03:34 AM

Equivalent of Perl HTML::TreeBuilder?
 
Is there a well-known, supported Ruby equivalent to Perl's
HTML::TreeBuilder?

--
John W. Kennedy
"You can, if you wish, class all science-fiction together; but it is
about as perceptive as classing the works of Ballantyne, Conrad and W.
W. Jacobs together as the 'sea-story' and then criticizing _that_."
-- C. S. Lewis. "An Experiment in Criticism"

Alex Fenton 07-29-2004 09:11 AM

Re: Equivalent of Perl HTML::TreeBuilder?
 
John W. Kennedy wrote:

> Is there a well-known, supported Ruby equivalent to Perl's
> HTML::TreeBuilder?
>


Yes - you can use ruby htmltools:
http://bike-nomad.com/ruby/

You can use these to get a REXML parse tree from ordinary HTML. You can
then use XPATH expressions on the resultant tree.

Have used this for a few projects and had no problems.

cheers
alex



daz 07-31-2004 01:36 AM

Re: Equivalent of Perl HTML::TreeBuilder?
 

Alex Fenton wrote:
> John W. Kennedy wrote:
>
> > Is there a well-known, supported Ruby equivalent to Perl's
> > HTML::TreeBuilder?
> >

>
> Yes - you can use ruby htmltools:
> http://bike-nomad.com/ruby/
>


That lib (updated) now lives here:
http://rubyforge.org/projects/ruby-htmltools/

>
> cheers
> alex
>


:daz





All times are GMT. The time now is 09:52 PM.

Powered by vBulletin®. Copyright ©2000 - 2013, vBulletin Solutions, Inc.
SEO by vBSEO ©2010, Crawlability, Inc.