Daniel Rabe wrote:
I'm using SAX (Xerces 2.3.0 on Windows XP) to parse an XML file that can
contain large CDATA sections (where large is somewhere between 1 and 5
Mb). The data is Base64-encoded. The code works properly, but when the
CDATA is over 1Mb or so, it's very slow. It seems like a 1Mb CDATA
section can be processed in several seconds, but once it gets up to
about 3 or 4 Mb, processing time goes up to about 10 minutes. It seems
The code responsible for scanning CDATA sections was
buffering the contents. So as the CDATA size increased,
the parser needed to create larger and larger buffers
to hold the data, degrading performance. Since the
2.3.0 release, I received another report of this
problem and have fixed the code in CVS.
The next release of the parser will have the fix for
your problem. Or you can grab the latest jar files from
the nightly build:
http://gump.covalent.net/jars/latest/xml-xerces2/
--
Andy Clark * [EMAIL PROTECTED]
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]