From: Sean Chittenden Date: 2003-04-17T10:14:58+09:00 Subject: Re: Libxml SAX parser? > I need to read XML documents from an open network socket. Rexml's > Document.parse_stream works fine, but is a tad slow for this > application. > > I installed libxml, but while there is a wrapper for the SAX > parser, I haven't found a way to set the callbacks. This limits > it's usefulness severly. It isn't in the TODO file either. > Have I missed something here ? > > None if the DOM parsers seem to have an option: Stop when you > have a valid (complete) document, which would be just what I > need. > > Any suggestions ? (apart from don't use XML). 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. http://people.FreeBSD.org/~seanc/TODO -sc -- Sean Chittenden