RE: [xml-dev] Fast text output from SAX?

From
Hunsberger, Peter <>
To
Bjoern Hoehrmann <>, Michael Kay <>
Date
2004-04-15T17:40:15Z
ID
<>
Thread
RE: [xml-dev] Fast text output from SAX?
Bjoern Hoehrmann <> writes:

> In order to know whether the checksum is correct the parser 
> would need to read the complete document and calculate the 
> checksum. 

No. There are many algorithms that work on partial fragments.  The
standard Java security.MessageDigest classes for example.  As long as
both sides agree what the buffer size is and what the algorithm is you
don't need to handle the entire document at once.