创建xml文件出现警告:No grammar constraints (DTD or XML Schema) referenced in the document.

解决方法:

一、修改Preferences-->>XML中 “No grammar specified” 警告为“Ignore” 
如图将 “Error” 修改为 “Ignore” 。

创建xml文件出现警告:No grammar constraints (DTD or XML Schema) referenced in the document.

或第二种方法:

二、增加<!DOCTYPE xml>

创建xml文件出现警告:No grammar constraints (DTD or XML Schema) referenced in the document.

这两种方法都行,建议使用第二种方法。

如有问题,欢迎提出,分享快乐