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 The Java EE 7 Tutorial Volume 1 or Volume 2 this week in the Java EE forum
or jQuery UI in Action in the JavaScript forum!
JavaRanch » Java Forums » Engineering » XML and Related Technologies
Bookmark "XML-parser cuts some values??" Watch "XML-parser cuts some values??" New topic
Author

XML-parser cuts some values??

Emil Karlsson
Ranch Hand

Joined: May 23, 2002
Posts: 63
Hi,
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
#
FFFFCC
!
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?
/Emil
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).
Christophe
Emil Karlsson
Ranch Hand

Joined: May 23, 2002
Posts: 63
Thanks a lot.
That put me in the right direction
/Emil
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
 
subject: XML-parser cuts some values??