From: Ned Konz Date: 2002-06-05T01:37:52+09:00 Subject: Re: HTML Parser suggestions wanted On Tuesday 04 June 2002 08:50 am, james@rubyxml.com wrote: > True, but REXML is part of the Windows PragProg install, and it's > quick and easy to install from source, anyway. Yes, it's just another dependency. > > 2. If I don't build an REXML tree, I could still return my own > > elements from XPath queries. That is, I could use REXML > > transparently and not expose the user to any of REXML's elements. > > Would this be a preferable way to provide XPath support? > > Wouldn't REXML still need to be installed? Only for XPath support (you can see my pre-1.03 at http://bike-nomad.com/ruby/ruby-htmltools-1.03.tar.gz) > BTW, quick question: Is there any documentation (aside form the > terse API docs) about your parser? No, but there should be some (there is the RDoc stuff). Care to write it? I guess I was waiting for the API to stabilize. There will be an article in the near future on the O'Reilly site, I believe. > Is there a way to grab the > parsed HTML and assign it to a string? All I've seen is how to > write to a file. No, but I'll add it. Is there a string IO class in Ruby? If there were, you could use print_on() (after I make it take a stream argument ). I see stream.rb in the RAA, but don't know whether it would work well with Strings. -- Ned Konz http://bike-nomad.com GPG key ID: BEEA7EFE