Equivalent of Perl HTML::TreeBuilder?

J

John W. Kennedy

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"
 
A

Alex Fenton

John said:
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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,744
Messages
2,569,482
Members
44,901
Latest member
Noble71S45

Latest Threads

Top