开发者

Where the error 'Content is not allowed in prolog' comes from?

开发者 https://www.devze.com 2023-02-14 20:12 出处:网络
For example in Problems I have Content is not allowe开发者_Python百科d in prolog. How to find out why its there(what eclipse plugin has put it there) and how to turn it off?I had this problem too

For example in Problems I have

Content is not allowe开发者_Python百科d in prolog.

How to find out why its there(what eclipse plugin has put it there) and how to turn it off?


I had this problem too and it was, because i changed/saved the file in UltraEdit. After the save command, the file encoding changed and included characters, eclipse was not able to read.

You can open the file with the windows "Editor" tool and delete the characters, eclipse can not read. You will directly detect them.


This sounds like an error with a xml file. Most of the time "Content is not allowed in prolog" means, that your XML file does not have the right format or even doesn't start the right way.


"Content is not allowed in prolog" is the error thrown by Xerces when there's something in an XML file or stream that precedes the <?xml?> declaration. There must be nothing before that, not even whitespace or a Byte-Order-Mark.


Double-click the message and it should take you to the file (and ideally location within the file) that is the source of the problem.

This specific error sounds like you've got a malformed XML file.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号