No grammar constraints (DTD or XML Schema) referenced in the document. java项目xml文件报错或者出现警告

来源:互联网 发布:ajax javascript区别 编辑:程序博客网 时间:2024/06/05 22:34

有的时候我们在做java 项目的时候,当打开eclipse时,xml文件会出现警告。

这里一般情况下我们不会去管他,因为No grammar constraints (DTD or XML Schema) referenced in the document.这个警告不影响项目的运行。

 如果大家不想看到这种警告,可以在eclipse中进行设置。

  1. 方法:常用方法   关闭XML验证  
  2. 工具栏:windows => preferences => xml => xml files => validation => Indicate when no grammar is specified:选择Ignore即可。

1 0