From: Sean Chittenden Date: 2003-04-18T07:54:07+09:00 Subject: Re: Libxml SAX parser? > > I haven't completed the SAX handlers, there's just some > > infrastructure for it. I prefer the text reader interface over > > SAX, but I haven't done either since I haven't had a need to > > support SAX. DOM + XPath has satisfied all of my needs to date. > > patches welcome though. :) Nag me enough about it, and I'll get > > to it, but it's not that high on my list of things to work on. > > No, I won't nag you about it. If you don't need it, you don't need > it. It's just surprising how little choice there is if you need to > grab xml-documents from an input stream. Agreed. > As far as I can see, libxml2 doesn't support this at all, so a ruby > wrapper, even with SAX would do me no good. As a matter of fact, it would, and libxml2's arguably the fastest SAX parser out there. It's DOM is constructed via a set of SAX callbacks. http://xmlbench.sourceforge.net/results/benchmark/index.html Unless you're parsing documents that are hundreds of MB in size, libxml2's pretty efficient. -sc -- Sean Chittenden