Equivalent of Perl HTML::TreeBuilder?

Discussion in 'Ruby' started by John W. Kennedy, Jul 29, 2004.

  1. 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"
     
    John W. Kennedy, Jul 29, 2004
    #1
    1. Advertising

  2. John W. Kennedy

    Alex Fenton Guest

    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
     
    Alex Fenton, Jul 29, 2004
    #2
    1. Advertising

  3. John W. Kennedy

    daz Guest

    daz, Jul 31, 2004
    #3
    1. Advertising

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

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Greg Aumann
    Replies:
    0
    Views:
    336
    Greg Aumann
    Jun 28, 2006
  2. Fredrik Lundh
    Replies:
    0
    Views:
    443
    Fredrik Lundh
    Jul 1, 2006
  3. Bruce Horrocks
    Replies:
    1
    Views:
    113
    Bruce Horrocks
    Jun 12, 2005
  4. Replies:
    7
    Views:
    1,390
  5. Dean Karres

    HTML::TreeBuilder issue

    Dean Karres, Feb 5, 2009, in forum: Perl Misc
    Replies:
    6
    Views:
    205
    Larry Gates
    Feb 13, 2009
Loading...

Share This Page