当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即可。

本文介绍如何解决Eclipse中编辑XML文件时出现的No grammar constraints (DTD or XML schema) detected for the document警告。通过调整Eclipse的验证设置,可以有效避免此警告的出现。
1730

被折叠的 条评论
为什么被折叠?



