elena 2002/11/08 16:17:11 Modified: java/docs faq-general.xml Log: add FAQ on SAX characters() Revision Changes Path 1.29 +16 -1 xml-xerces/java/docs/faq-general.xml Index: faq-general.xml =================================================================== RCS file: /home/cvs/xml-xerces/java/docs/faq-general.xml,v retrieving revision 1.28 retrieving revision 1.29 diff -u -r1.28 -r1.29 --- faq-general.xml 8 Nov 2002 23:57:02 -0000 1.28 +++ faq-general.xml 9 Nov 2002 00:17:11 -0000 1.29 @@ -184,5 +184,20 @@ server on which documents are kept is currently not running etc.. </p> </a> - </faq> + </faq> + + <faq title='Incomplete character data is received via SAX'> + <q>Why SAX parser looses some character data or why the data is split + into several chunks?</q> + <a> + <p>If you read the <jump href='http://www.saxproject.org/apidoc/org/xml/sax/ContentHandler.html#characters(char[],%20int,%20int)'>SAX</jump> + documentation, you will find that SAX may deliver contiguous text as multiple calls to +characters(), for reasons having to do with parser efficiency and input +buffering. It is the programmer's responsibility to deal with that +appropriately, e.g. by accumulating text until the next non-characters() +event. + </p> + </a> + </faq> + </faqs>
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]