Re: [xml] xmlParseChunk

On Tue, Sep 04, 2001 at 10:44:57PM +0100, Dan Ellis wrote:

Playing around with libxml2 for the first time. Perhaps it's just late, or
perhaps I haven't read the docs very well, but it seems to me that, when
using xmlParseChunk, none of the SAX handlers get called until
xmlParseChunk is called with a non-zero value as the last parameter, at
which point they get called for the entire document.

Is it possible to have the handlers called for as much XML as is parsable
every time xmlParseChunk is called?

  the parser will get called for at least 80 bytes of input. This
will mean on each network packet (nobody's using ATM, right), it's
an ad-hoc value to represent a line of input. You're the first
suggesting lowering it so far.


Daniel Veillard      | Red Hat Network
veillard redhat com  | libxml Gnome XML XSLT toolkit | Rpmfind RPM search engine

[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]