File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
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
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??
It's not a secret anymore!