Hello, i've created an IOParserContext with self defined read- and close-callbacks. When i feed this parser with an small test-document (430 Byte) and trace the invocation of the read-callback, there is one 'normal' invocation <TraceFile> Parse document... readCallback(FD=4, BuffLen=4000): done, BytesRead=430, Status=0 (OK) ... </TraceFile> which reads the whole document, followed by multiple callbacks (ABOUT 95 TIMES !!!) that seems useless (as they read EOF): <TraceFile> Parse document... readCallback(FD=4, BuffLen=4000): done, BytesRead=430, Status=0 (OK) readCallback(FD=4, BuffLen=3955): done, BytesRead=0, Status=1 (EOF) readCallback(FD=4, BuffLen=3611): done, BytesRead=0, Status=1 (EOF) readCallback(FD=4, BuffLen=3611): done, BytesRead=0, Status=1 (EOF) ... </TraceFile> The read-callback returns the number of read bytes (so they return 0 in case of EOF). I've noticed the same behavior for an self-defined ExternalEntityLoader if i validate the document while parsing. The ExternalEntityLoader is called one time (reads the whole DTD) followed by several (73 times!!) callbacks to read EOF. Is this a normal behavior? Mit freundlichen Gruessen - Kind regards Markus Henke ________________________Addressed by:________________________ ORDAT GmbH & Co. KG - Serversysteme/Neue Technologien Dipl.-Inf. (FH) Markus Henke Fon: +49 (641) 7941-0 Rathenaustr. 1 Fax: +49 (641) 7941-132 35394 Gießen mailto:markus henke ordat com See: http://www.ordat.com _____________________________________________________________ <<Markus Henke.vcf>>
Attachment:
Markus Henke.vcf
Description: Binary data