From: han.holl@... (Han Holl) Date: 2003-04-18T20:13:05+09:00 Subject: Re: Libxml SAX parser? Sean Chittenden wrote in message news:<20030417225405.GX79923@perrin.int.nxad.com>... > > > 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 I don't doubt for a moment that you know libxml2 better than I, but the only constructors I could find in the docs are xmlSAXUserParseFile and xmlSAXUserParseMemory. The first takes a filename, and the second a pointer to char. So I assumed that libxml2 doesn't do stream parsing. I hope I'm wrong. Cheers, Han Holl