I did have similar experiences parsing files by myself using SAX parsing. Xerces and other parsers chop files in blocks. 16k is the default size for xerces, or at least it was.

Hander code must be aware of that, in the events handling, and hold strings from one block to the other if one tag is broken in between two blocks.

Otherwise, results can be unpredictable.

I guess, just a guess, could happen something similar in Tomcat parsing but a deeper investigation must be developed. Anyway, that you say could have meaning.

Regards,

Adolfo.

From: "Kransen, J." <[EMAIL PROTECTED]>
Reply-To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
To: "'Struts Users Mailing List'" <[EMAIL PROTECTED]>
Subject: [very OT] 16 kb limit in XML from Tomcat?
Date: Mon, 17 May 2004 12:31:44 +0200

Hello, I generate an XML file from within a JSP in Tomcat. Especially after
16384 bytes the contents are really interesting. Unfortunately, Tomcat
disagrees and truncates it. It can't be coincidence that this is 16k
precisely, so I hoped to find a configuration item set to 16k (in fact I
hoped not to have a limit at all), but I can't find one. There are also no
stack traces or any errors/warnings, it just gets truncated and that's it.
It can't be the browser, because it happens with IE6 and Opera 7.23.

By the way, do I have to (can I) set a content type "text/xml" in JSP?

Regards, Jeroen


--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]


_________________________________________________________________
Protect your PC - get McAfee.com VirusScan Online http://clinic.mcafee.com/clinic/ibuy/campaign.asp?cid=3963



--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]



Reply via email to