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

Yahoo! Groups Tips

Did you know...
Real people. Real stories. See how Yahoo! Groups impacts members worldwide.

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 #308 of 308 | Next >
Re: [xmlpull-user] Stax parsing problem



On Dec 12, 2007 10:54 AM, xunamua <parthajitbaruah@...> wrote:
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.
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 your code to expect it.
 
HTH,
 
Alek

<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>




Yahoo! Groups Links

<*> To visit your group on the web, go to:
   http://groups.yahoo.com/group/xmlpull-user/

<*> Your email settings:
   Individual Email | Traditional

<*> To change settings online go to:
   http://groups.yahoo.com/group/xmlpull-user/join
   (Yahoo! ID required)

<*> To change settings via email:
   mailto:xmlpull-user-digest@yahoogroups.com
   mailto:xmlpull-user-fullfeatured@yahoogroups.com

<*> To unsubscribe from this group, send an email to:
   xmlpull-user-unsubscribe@yahoogroups.com

<*> Your use of Yahoo! Groups is subject to:
   http://docs.yahoo.com/info/terms/




--
The best way to predict the future is to invent it - Alan Kay

Wed Dec 12, 2007 6:26 pm

as10m
Offline Offline
Send Email Send Email

Forward
Message #308 of 308 | Next >
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