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 Android Security Essentials Live Lessons 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.
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
subject: DocumentBuilder parse call fails
Similar Threads
DocumentBuilder parse file is null
Software caused connection abort: socket write error
IN Memory DOM document validation
parsing a xml file via https