Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > Ruby > Equivalent of Perl HTML::TreeBuilder?

Reply
Thread Tools

Equivalent of Perl HTML::TreeBuilder?

 
 
John W. Kennedy
Guest
Posts: n/a
 
      07-29-2004
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"
 
Reply With Quote
 
 
 
 
Alex Fenton
Guest
Posts: n/a
 
      07-29-2004
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


 
Reply With Quote
 
 
 
 
daz
Guest
Posts: n/a
 
      07-31-2004

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



 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
FAQ 2.17 What is perl.com? Perl Mongers? pm.org? perl.org? cpan.org? PerlFAQ Server Perl Misc 0 04-04-2011 10:00 PM
FAQ 1.4 What are Perl 4, Perl 5, or Perl 6? PerlFAQ Server Perl Misc 0 02-27-2011 11:00 PM
FAQ 2.17 What is perl.com? Perl Mongers? pm.org? perl.org? cpan.org? PerlFAQ Server Perl Misc 0 02-03-2011 11:00 AM
FAQ 1.4 What are Perl 4, Perl 5, or Perl 6? PerlFAQ Server Perl Misc 0 01-23-2011 05:00 AM
Perl Help - Windows Perl script accessing a Unix perl Script dpackwood Perl 3 09-30-2003 02:56 AM



Advertisments