Carl Christianson wrote:

> Hi all,
> this might be a dumb question but I'm wondering if something I'm seeing is
> "normal".

it is normal as specified in
http://sax.sourceforge.net/apidoc/org/xml/sax/ContentHandler.html#characters(char[], 
int, int)

i think that the reason for this behavior is that parser is firing characters() with 
partial input
event when during reading input buffer is re-filled so current content is returned in 
characters()
event.

you are supposed to buffer characters until endTag and only then you know all 
character content of
element (for example by using StringBuffer) - you should do it unless SAX2 driver you 
are using will do
this buffering for you but this will make your SAX2 code dependent on this particular 
SAX2
implementation and this is not good for code prtability...

alek



---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to