* Sam Ruby <[EMAIL PROTECTED]> [2005-08-22 06:45]: > SAX is a popular API for dealing with streaming XML (and there > are a number of "pull parsing" APIs too).
Of course – using a DOM parser is impossible with either approach anyway. > With a HTTP client library and SAX, the "absolute simplest > solution" is what Bob is describing: a single document that > never completes. That can be argued both ways, I think. The important point is that the connection can and almost certainly will be closed in the middle of an entry document. With a single, endless document, the application will have to backtrack, discarding events until it has thrown away the last seen start-element event for the incomplete entry, then close the feed element. With a series of concatenated complete documents, it can simply discard everything that belongs to the current incomplete Entry Document. There are implicit checkpoints in the stream. Regards, -- Aristotle Pagaltzis // <http://plasmasturm.org/>