Java Mailing List Archive

http://www.junlu.com/

Home » Home (12/2007) » JDOM User »

Re: [jdom-interest] Error on line -1: Premature end of file

J. McConnell

2005-12-26

Replies:

On 12/26/05, Mehrshad Setayesh <mehrshad@(protected):
>
> Every once in a while, I get the following exception when trying to read in
> my XML file. The file looks ok and seems to be valid. Any hints would be
> appreciated.
>

I don't know if parsers fail on this, but is it possible that you are
missing a newline at the end of the file? Other than that, I couldn't
begin to guess without the XML.

- J.

_______________________________________________
To control your jdom-interest membership:
http://www.jdom.org/mailman/options/jdom-interest/youraddr@(protected)
©2008 junlu.com - Jax Systems, LLC, U.S.A.