When I supply an InputStream to the Document.parse
function, it fails with
[Fatal Error] :-1:-1: Premature end of file.
org.xml.sax.SAXParseException: Premature end of file.
If I take the same stream, read it into a byte array,
convert that to a String, then use Document.parse
(InputSource) on a StringReader, it works fine.
Seems there's a problem w/ parse for InputStream.
Log in to post a comment.