You are viewing a plain text version of this content. The canonical link for it is here.
Posted to j-dev@xerces.apache.org by bu...@apache.org on 2002/01/29 16:46:42 UTC

DO NOT REPLY [Bug 6099] - StreamingCharReader consumes extra characters

DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://nagoya.apache.org/bugzilla/show_bug.cgi?id=6099>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://nagoya.apache.org/bugzilla/show_bug.cgi?id=6099

StreamingCharReader consumes extra characters





------- Additional Comments From gmarcy@us.ibm.com  2002-01-29 15:46 -------
Actually, you should always wrap a stream with multiple documents on it with 
"substreams" that end the stream at the end of each document.  Since the parser 
has no way of knowing when one document ends and another begins, you have to 
keep some additional knowledge in the multi-document stream anyway.  This is 
because a document is not defined to end when the end tag of the root element 
has been parsed, as there could be comments and processing instructions after 
the end tag that are part of the same document.  A parser would always need to 
read ahead into the next document, and since the following document could also 
begin with comments and processing instructions, how could you know which were 
part of which document?

---------------------------------------------------------------------
To unsubscribe, e-mail: xerces-j-dev-unsubscribe@xml.apache.org
For additional commands, e-mail: xerces-j-dev-help@xml.apache.org