From: han.holl@... (Han Holl) Date: 2003-04-17T20:01:08+09:00 Subject: Re: Libxml SAX parser? Sean Chittenden wrote in message news:<20030417011450.GN79923@perrin.int.nxad.com>... > > 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. 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. I tried xmlparser, which claims to have an stream constructor, but this is so bug-ridden I had to give up. I could yet try xmlscan, but it's pure ruby, and I doubt the performance win over REXML would be earth-shattering. And xmlscan isn't really well documented. So I'll stick with REXML for the time being. Cheers, Han Holl