Best approach is to write your code so it doesn't insist on receiving all
the data at once as a single contiguous string.

Standard workaround if you can't do that: In characters(), just append
received data to a buffer. (Note that you must copy it into your own
storage, since SAX is also allowed to reuse its buffers!) In all other SAX
events, start with a call to a routine which handles the buffered
characters (if any) and resets the buffer.

The other standard workaround is to switch to DOM-based processing, since
DOM builders deal with this. If you've got particularly large documents, or
want to do "streaming" processing, that may not be a good solution for you.



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

Reply via email to