Search the web
Sign In
New User? Sign Up
xmlpull-user
? Already a member? Sign in to Yahoo!

Yahoo! Groups Tips

Did you know...
Message search is now enhanced, find messages faster. Take it for a spin.

Best of Y! Groups

   Check them out and nominate your group.
Having problems with message search? Fill out this form to ensure your group is one of the first to be migrated to the new message search system.

Messages

  Messages Help
Advanced
Stax parsing problem   Message List  
Reply | Forward Message #307 of 308 |
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>




Wed Dec 12, 2007 3:54 pm

xunamua
Offline Offline
Send Email Send Email

Forward
Message #307 of 308 |
Expand Messages Author Sort by Date

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...
xunamua
Offline Send Email
Dec 12, 2007
6:06 pm

... hi Sam, in contrast o XmlPull API in STAX there is no requirement to retrn all text inside element in one event instead youmay get multiple - just modify...
Aleksander Slominski
as10m
Offline Send Email
Dec 12, 2007
6:26 pm
< Prev Topic  |  Next Topic >
Advanced

Copyright © 2009 Yahoo! Inc. All rights reserved.
Privacy Policy - Terms of Service - Guidelines - Help