| Author |
Solution fro the error:org.xml.sax.SAXParseException- Content is not allowed in prolog.
|
rajashree loganayagi
Greenhorn
Joined: Apr 12, 2011
Posts: 20
|
|
Hi,
I write an xml code to read a file from a folder. But i got this type error: org.xml.sax.SAXParseException-Content is not allowed in prolog.
How can i rectify this... Help me Please ASAP...
|
 |
William Brogden
Author and all-around good cowpoke
Rancher
Joined: Mar 22, 2000
Posts: 12324
|
|
That is usually due to the file NOT starting with a < character. Leading spaces or line feeds are a good bet.
How was the file created?
Bill
|
Java Resources at www.wbrogden.com
|
 |
rajashree loganayagi
Greenhorn
Joined: Apr 12, 2011
Posts: 20
|
|
|
Thank U.... It happens all because of the space present before <character. Now i rectified it.. Thanks for your valuable suggestion.
|
 |
 |
|
|
subject: Solution fro the error:org.xml.sax.SAXParseException- Content is not allowed in prolog.
|
|
|