去除eclipse中xml文件的 No grammar constraints (DTD or XML schema) detected for the document警告

来源:互联网 发布:python 登入h3c交换机 编辑:程序博客网 时间:2024/05/21 08:06

当eclipse的xml文件经常会弹出No grammar constraints (DTD or XML schema) detected for the document警告,看字面意思是没有xml文件的规范DTD验证,不知道怎么添加DTD或XML schema,那就只能掩耳盗铃吧,把这个警告忽略过去,方法:

在eclipse菜单中配置:
windows => preferences => xml => xml files => validation => Indicate when no grammar is specified:下拉框选择Ignore即可。

原创粉丝点击