File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
A friendly place for programming greenhorns!
Big Moose Saloon
Register / Login
Java in General
DocumentBuilder parse call fails
Joined: Apr 11, 2006
Jan 16, 2008 13:22:00
I have an InputStream iStream. I cat view the characters in it when I do a while-loop.
So I want to put this iStream into a DocumentBuilder builder.
When I do the following
I get an error "org.xml.sax.SAXParseException: Premature end of file."
Could someone please tell me what I could do different here to parse iStream?
Thanks a lot.
I agree. Here's the link:
subject: DocumentBuilder parse call fails
DocumentBuilder parse file is null
IN Memory DOM document validation
Software caused connection abort: socket write error
parsing a xml file via https
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter
| Powered by
Copyright © 1998-2014