From: "Skye Shaw!@#$" Date: 2009-06-24T02:25:06+09:00 Subject: Re: HTML dom On Jun 23, 8:55 am, Victor Tanvuia wrote: > Hi, > > I'm trying to build a HTML page indexer in ruby and I'd like to be able > to use DOM and or XPath on a document. The application is currently > using REXML Yes, REXML can be awkward if you're used to using the DOM. IMHO. > Is there a way to make REXML more permissive or is there another library There's libxml bindings for Ruby, but I recall that library missing getElementsByTagName and getElementsById. Though it does have a method to query the DOM via Xpath. Have you tried using REXML's SAX2 parser? I think it would be better suited for your problem. -Skye