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

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

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

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

  1. 方法:常用方法关闭XML验证
  2. 工具栏:windows=>preferences=>xml=>xmlfiles=>validation=>Indicatewhennogrammarisspecified:选择Ignore即可。

相关文章

php输出xml格式字符串
J2ME Mobile 3D入门教程系列文章之一
XML轻松学习手册
XML入门的常见问题(一)
XML入门的常见问题(三)
XML轻松学习手册(2)XML概念