启动 Eclipse 时某些 xml 文件中出现 XML 错误。重新保存修复
所以我对某些 xml 文件有一个非常奇怪的问题,它真的开始让我烦恼。 Eclipse 告诉我一些 xml 文件包含错误,但只需重新保存文件(通过添加额外的空间或其他内容)即可修复错误,无论错误是什么。每次我启动 eclipse 时都会发生这种情况。
它在文件夹上显示包含 xml 文件的文件夹内有错误,给出错误,但在我展开文件夹列表后,文件本身上的错误图标仅显示一瞬间。所以每次我都必须记住有问题的 xml 文件的名称。
大多数 xml 文件中出现的错误似乎是“文件过早结束”。但就像我说的,只需在添加额外的空格或其他内容后重新保存文件,即可从文件中删除错误,直到我下次启动 eclipse。
但我也遇到了其他错误,这些错误只是 Eclipse 启动时的问题。
我曾多次尝试清理该项目,但没有帮助。
有人知道什么会导致这种奇怪的行为吗?
So I have this really weird issue with certain xml-files and it's really starting to annoy me. Eclipse is telling me some xml-files contain errors, but simply resaving the files (by adding extra space or something) fixes the error, whatever the error was. This happends every time I start eclipse.
It says on the folder that there's error inside the folders that contain the xml-files giving errors, but the error icon on the file itself just shows for a split second after I expand the folder list. So I have to remember every time what names the xml-files with the problems had.
The error that seems to pop up in most of these xml-files is "Premature end of file". But like I said, simply resaving the file after adding an extra space or something, removes the error from the file, until I start eclipse the next time.
But I've also had other errors that are just a problem when eclipse starts.
I've tried cleaning the project several times, but it doesn't help.
Do someone have an idea what could cause this odd behaviour?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
你可以做一件事
如果您已安装,请继续该项目,单击
你会得到一滴,它会有一个干净的选择
单击它,然后再次运行该应用程序
每次都会帮助您清洁项目
谢谢
拉加夫,
You can do one thing
if you have installed go on to the project click
u will get a drop it would have a clean option
click it and then run the application again
CLEANING the project with help u out every time
thanx
raghav,