I'm getting SAXParseException because of a premature end of file
trying to parse an XML file in a ZipInputStream.
It works fine if I dump the XML from the ZipInputStream to a file and
then parse it from a FileInputStream.
I'm using Xerces 2.8.0
This is the code:
public static Document parseDom(InputStream input)
throws SAXException, IOException {
DOMParser domParser = new DOMParser();
domParser.parse(new InputSource(input));
return domParser.getDocument();
}
If "input" is a FileInputStream dumped from the ZipInputStream no
problem, but using the ZipInputStream directly is not working.
Some idea of what could be the problem?
Thanks in advance.
--
Ismael
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]