Hi,
I hope this post is relevant to this forum.
I'm using Sun's implementation of StAX parser to parse some large xml
files. The file size is about 1.5MB. I'm using the XMLEventReader
interface to parse xmls which consists of many elements like these.
The SCRIPT element contains sql queries which can be very large at times.
The problem I'm facing is that at times the character event returns me
only a part of the text in the SCRIPT element. It happens if there are
spaces and newlines. If the text changes by a single character ( add
or remove a character somewhere ), it starts working fine.
This looks like a general XML parsing problem or it might be something
related to the stax parser. Is there any limit to how many characters
the character event can have at a time ?
Any thoughts on this is highly appreciated.
Thanks
Sam
<BUILD VERSION="2250.0000">
<CHANGE NUMBER="0">
<SCRIPT>
<![CDATA[
ALTER TABLE INVOICE ALTER COLUMN
INVOICE_SOLD_TO_PUB_X_REF NVARCHAR(40) NULL
;
]]>
</SCRIPT>
</CHANGE>
<CHANGE NUMBER="1">
</CHANGE>
</BUILD>