前端之家收集整理的这篇文章主要介绍了
xml文件在Myeclipse中出错误,
前端之家小编觉得挺不错的,现在分享给大家,也给大家做个参考。
1、在使用dwr的时候,会出现dwr.xml
文件报错的问题,
错误如下: Referenced file contains errors (http://getahead.org/dwr/dwr30.dtd)
修改如下: <?xml version="1.0" encoding="UTF-8"?> <!DOCTYPE dwr PUBLIC "-//GetAhead Limited//DTD Direct Web Remoting 3.0//EN" "http://getahead.org/dwr/dwr30.dtd"> 2、在struts2中xml
配置文件报错 如下:Referenced file contains errors (http://www.opensymphony.com/xwork/xwork-validator-1.0.2.dtd). For more information,right click on the message and select "Show Details..."
修改如下: <?xml version="1.0" encoding="UTF-8"?> <!DOCTYPE validators PUBLIC "-//Apache Struts//XWork Validator 1.0.2//EN" "http://struts.apache.org/dtds/xwork-validator-1.0.2.dtd"> 3、最后的办法点击右键Myeclipse-->Remove All Validation Markers
原文链接:https://www.f2er.com/xml/299418.html