From: alex fenton Date: 2004-04-02T07:54:22+09:00 Subject: Re: HTML parsing by REXML Hi Paul Argentoff wrote: > Sorry for returning to sorta well-discussed (but not in a sense I need) topic. > I can't parse xml files by rexml since some tags in html are open (such as > , etc). Document.new errors with a message about such a tag. > > Is there any workaround? I really like and accustomed to REXML and don't want > to use another lib. You want Ned Konz's HTML tools. http://bike-nomad.com/ruby/index.html These are based on html-parser (so it'll work with any HTML, not just XHTML), and allow you to treat the resultant parse tree as an REXML document (so you can search it using XPath etc). I've used it in a few apps and it works perfectly. cheers alex