From: Mark Thomas Date: 2008-10-01T02:39:00+09:00 Subject: Re: rexml exceptions On Sep 30, 12:46 pm, Eric Will wrote: > Actually, this isn't working for me. I'm using the SAX parser, and it > just calls Listener#on_parser_error with a string. Not helping me. Why would you want to do that? You already have the XML as a string. The only reason to put up with the awful interface and extra complexity of SAX would be if your file doesn't fit into memory. And I don't think the SAX interface to libxml is as complete/robust yet as the DOM interface. Go with the DOM interface. With libxml it's plenty fast. -- Mark.