媒体文件中的 DTD 问题
我正在尝试在 Eclipse 中构建 andengine ( http://www.andengine.org/ )示例,但无法继续,因为 eclipse 正在尝试将 .mod 文件(音频资源?)解析为 XML。我需要更改项目配置或更改 eclipse 中的某些内容吗?确切的错误是:
Description
The markup declarations contained or pointed to by the document type declaration must be well-formed.
Resource
lepeltheme.mod
Path
/AndEngineExamples/assets/mfx
Location
line 1
Type
DTD Problem
我对 eclipse 很陌生,也是 Java 的初学者。
感谢您的任何建议。
I'm trying to build the andengine ( http://www.andengine.org/ )examples in eclipse, but can't continue because eclipse is trying to parse a .mod file (an audio resource?) as XML. Do I need to change the project configuration or change something in eclipse? The exact error is:
Description
The markup declarations contained or pointed to by the document type declaration must be well-formed.
Resource
lepeltheme.mod
Path
/AndEngineExamples/assets/mfx
Location
line 1
Type
DTD Problem
I'm very new to eclipse and a beginner in Java.
Thanks for any suggestions.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
你使用什么版本的Eclipse?你安装了哪些插件?
如果您不关心 ModPlayerExample,只需删除该文件即可。所有其他示例应该运行良好。
此致,
尼古拉斯
what Eclipse version are you using? What plugins do you have installed?
In case you don't care about the ModPlayerExample, simply delete the file. All other Examples should run fine.
Best Regards,
Nicolas
问题很可能是 Eclipse 编辑器首选项。
您需要更改 XML 验证。
在 Eclipse 中选择 Window->Preferences,然后选择 XML Files->XML Validation。在“验证文件”下,将“未指定语法”切换为“忽略”。
这应该有望解决您的问题。
The problem is most likely the Eclipse editor preferences.
You need to change XML validation.
In Eclipse select Window->Preferences, then XML Files->XML Validation. Under "Validating files" switch"No grammar specificed" into IGNORE.
That should hopefully solve your problem.