Thankx a lot for the prev mail reply . i have one more doubt
The SAX specifiction say that
public void characters(char ch, int start, int length)
method does not send all the characters between a start and end tag will be sent in one go. The spec doesn't constrain SAX parsers to this
now suppose i have on element like
so if in the first call of the characters method if it send only "abc" then whether the next event again call the characters method and this time it send the remaining character "xyz"
Thankx in advance Tushar
Joined: Sep 16, 2000
Tushar, Yes you are correct. The parser will read a chunk of data and invoke the characters(char, int, int) method. It'd then continue reading from where it left off, read one more chunk and call the same method. This goes on till it reads the complete data.
The chunk of data read varies from parser to parser. Xerces reads 8KB of character data for each method call.
SCJP, SCJD, SCWCD 1.3, SCWCD 1.4, SCBCD
Joined: Aug 20, 2003
Hi Sathya Sankar ,thankx a lot for the reply .........