Re: [xml] Huge chunks in the callback function sax.characters

On Fri, Oct 03, 2003 at 05:40:48PM +0200, Hans Feder gfk de wrote:

I'm going to parse large xml-files and therefore  using SAX seems a good

When I parse throught the file I got no more than 4000 bytes. I assume this
is the maximum of the xmlChar length. I don't find any hints whether in the
documentation nor in the mailing list how I can increase the buffersize.
Is there any possiblity to handle such huge chunks with libxml->sax?

You can't change the size. That's needed to avoid DOS attacks.
You can handle large data, you just get multiple consecutive character
callbacks instead. I think the Java SAX and expat SAX work
the same way.


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]