Warning: No grammar constraints (DTD or XML schema) detected for the document

前端之家收集整理的这篇文章主要介绍了Warning: No grammar constraints (DTD or XML schema) detected for the document前端之家小编觉得挺不错的,现在分享给大家,也给大家做个参考。

这个警告信息说明xml缺少头部,类似头部如下:

  1. <!DOCTYPEhibernate-configurationPUBLIC
  2. "-//Hibernate/HibernateConfigurationDTD3.0//EN"
  3. "http://hibernate.sourceforge.net/hibernate-configuration-3.0.dtd">


加上头部后就不会出现警告信息。不过这个警告信息不会造成什么影响,如果不想加头部,可以去掉此警告。方法如下:

点【windows】》【prefrences】》【xml】》【xml files】》【validation】如下图:

然后警告消息就没了

原文链接:https://www.f2er.com/xml/300625.html

猜你在找的XML相关文章