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 2001/09/25 18:27:03 UTC

DO NOT REPLY [Bug 3659] - SAXParser always fails when parsing an xml document

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=3659>.
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=3659

SAXParser always fails when parsing an xml document

neilg@ca.ibm.com changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|                            |INVALID



------- Additional Comments From neilg@ca.ibm.com  2001-09-25 09:27 -------
Hi Jacques.  The problem lies in your code.  The trouble is that, after you use 
the BufferedReader to print out your xml file, there's nothing more to read; so 
the parser gets input which looks to it like a file containing only 
whitespace.  That's why it reports the error.  

To get around this, you can either remove your debugging code, or use a 
mark/reset operation on your InputStream object.  

Hope that helps,
Neil

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