File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Java in General and the fly likes DocumentBuilder parse call fails Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Head First Android this week in the Android forum!
JavaRanch » Java Forums » Java » Java in General
Bookmark "DocumentBuilder parse call fails" Watch "DocumentBuilder parse call fails" New topic

DocumentBuilder parse call fails

liliya woland
Ranch Hand

Joined: Apr 11, 2006
Posts: 134
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
jQuery in Action, 3rd edition