[Android] Eclipse Warning: No grammar constraints (DTD or XML schema) detected for the document

原文:http://www.cnblogs.com/Tealcwu/archive/2010/06/07/1752923.html

警告信息,没事的,一般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的规范,要去除警告的话:

Eclipse 工具栏:windows –> preferences –> xml -> xml files –> validation -> Indicate when no grammar is specified: 选择Ignore即可。


你可能感兴趣的:(eclipse,xml,android,schema,validation,constraints)