您的位置:首页 > 编程语言 > Java开发

Eclipse里的No grammar constraints (DTD or XML schema) detected for the document警告

2012-12-04 20:27 495 查看
Eclipse里的No grammar constraints (DTD or XML schema) detected for the document警告

警告信息,没事的,一般IDE环境中配置档的最前面都是DTD 或 XML 打头的。比如

< ?xml version="1.0" encoding="UTF-8"?>

< !DOCTYPE hibernate-configuration PUBLIC

"-//Hibernate/Hibernate Configuration DTD 3.0//EN"

"http://hibernate.sourceforge.net/hibernate-configuration-3.0.dtd">

dtd验证是xml的规范,要去除警告的话:工具栏:windows => preferences => xml => xml files => validation => Indicate when no grammar is specified:选择Ignore即可。
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: 
相关文章推荐