This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
The moose likes XML and Related Technologies and the fly likes XML-parser cuts some values?? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Engineering » XML and Related Technologies
Bookmark "XML-parser cuts some values??" Watch "XML-parser cuts some values??" New topic

XML-parser cuts some values??

Emil Karlsson
Ranch Hand

Joined: May 23, 2002
Posts: 63
I'm using :

when I run my program, the

method, cuts of some words.
For example, an hexdecimal colorcode that is supposed to be #FFFFCC, can be
It's no logic behind the cutting, it can happens everywhere, but it does not happens all the time!
Anyone who have hade the same problem?
Christophe Grosjean
Ranch Hand

Joined: Jan 22, 2002
Posts: 51
Hi Emil,
In fact, if you read the characters method javadoc :

This means that an element data is not sure to be read in one time. You need to stack the characters until the complete value is read (for instance, you know it when the endElement method is called for the current element).
Emil Karlsson
Ranch Hand

Joined: May 23, 2002
Posts: 63
Thanks a lot.
That put me in the right direction
I agree. Here's the link:
subject: XML-parser cuts some values??
Similar Threads
jsp file not found error
A question on SAXParser
XMLReader versus SAXParser
++ appears before my table??
Why does the SAXParser give the different result ?