This week's book giveaways are in the Refactoring and Agile forums.
We're giving away four copies each of Re-engineering Legacy Software and Docker in Action and have the authors on-line!
See this thread and this one for details.
Win a copy of Re-engineering Legacy Software this week in the Refactoring forum
or Docker in Action in the Cloud/Virtualization forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

XML-parser cuts some values??

 
Emil Karlsson
Ranch Hand
Posts: 63
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 51
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 63
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks a lot.
That put me in the right direction
/Emil
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic