#62 InputStream not parsing correctly

closed-duplicate
nobody
1
2007-08-28
2006-01-25
Anonymous
No

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.

Discussion

  • David Megginson

    David Megginson - 2007-08-28

    Logged In: YES
    user_id=232602
    Originator: NO

    Duplicate of 1538813

     
  • David Megginson

    David Megginson - 2007-08-28
    • priority: 5 --> 1
    • status: open --> open-duplicate
     
  • David Megginson

    David Megginson - 2007-08-28
    • status: open-duplicate --> closed-duplicate
     

Log in to post a comment.

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:





No, thanks