The moose likes XML and Related Technologies and the fly likes XML-parser cuts some values?? Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


Win a copy of The Mikado Method this week in the Agile and other Processes forum!
JavaRanch » Java Forums » Engineering » XML and Related Technologies
Reply 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
 
I agree. Here's the link: http://ej-technologies/jprofiler - if it wasn't for jprofiler, we would need to run our stuff on 16 servers instead of 3.
 
subject: XML-parser cuts some values??
 
Similar Threads
++ appears before my table??
A question on SAXParser
Why does the SAXParser give the different result ?
jsp file not found error
XMLReader versus SAXParser