Re: [xml] Huge chunks in the callback function sax.characters
- From: Daniel Veillard <veillard redhat com>
- To: Hans Feder gfk de
- Cc: xml gnome org
- Subject: Re: [xml] Huge chunks in the callback function sax.characters
- Date: Fri, 3 Oct 2003 11:54:15 -0400
On Fri, Oct 03, 2003 at 05:40:48PM +0200, Hans Feder gfk de wrote:
Hello,
I'm going to parse large xml-files and therefore using SAX seems a good
idea.
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
--
Daniel Veillard | Red Hat Network https://rhn.redhat.com/
veillard redhat com | libxml GNOME XML XSLT toolkit http://xmlsoft.org/
http://veillard.com/ | Rpmfind RPM search engine http://rpmfind.net/
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]