aspose file tools*
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 EJB 3 in Action this week in the EJB and other Java EE Technologies 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
A question on SAXParser
jsp file not found error
++ appears before my table??
Why does the SAXParser give the different result ?
XMLReader versus SAXParser