问题:
referenced file contains errors:...dtd
引用的dtd文件问题,红叉号指向xml文档的第一句。
解决方案:
1. 引入相关dtd文件
window-->Preferences-->MyEclipse-->Files And Editors-->XML-->XML
-->Catalog中,Add,添加一项,添加到User Specified Entries下面
其中Location当然是dtd文件的路径了,通过File System...选择就行了
Key Type有三个:Public ID,System ID,URI
Key和Key Type要对应!
比如添加Struts2的struts.xml文件的dtd catalog,Key Type选择Public ID,也是通常的选择,那么Key对应:
Key:-//Apache Software Foundation//DTD Struts Configuration 2.0//EN
2. Project-->Clean...,重新清理一下工程就可以了
referenced file contains errors:...dtd
引用的dtd文件问题,红叉号指向xml文档的第一句。
解决方案:
1. 引入相关dtd文件
window-->Preferences-->MyEclipse-->Files And Editors-->XML-->XML
-->Catalog中,Add,添加一项,添加到User Specified Entries下面

其中Location当然是dtd文件的路径了,通过File System...选择就行了
Key Type有三个:Public ID,System ID,URI
Key和Key Type要对应!
比如添加Struts2的struts.xml文件的dtd catalog,Key Type选择Public ID,也是通常的选择,那么Key对应:

Key:-//Apache Software Foundation//DTD Struts Configuration 2.0//EN
2. Project-->Clean...,重新清理一下工程就可以了