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

前端之家收集整理的这篇文章主要介绍了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即可。
原文链接:https://www.f2er.com/xml/295015.html

猜你在找的XML相关文章