No grammar constraints (DTD or XML Schema) referenced in the document.
2016-12-18 03:12
591 查看
方法1
关闭XML验证
工具栏:windows => preferences => xml => xml files => validation => Indicate when no grammar is specified:选择Ignore即可。
方法2
添加 内容如下
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/2002/xmlspec/dtd/2.10/xmlspec.dtd">
方法3(spring配置文件会报错)
添加 内容如下
<!DOCTYPE xml>
关闭XML验证
工具栏:windows => preferences => xml => xml files => validation => Indicate when no grammar is specified:选择Ignore即可。
方法2
添加 内容如下
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/2002/xmlspec/dtd/2.10/xmlspec.dtd">
方法3(spring配置文件会报错)
添加 内容如下
<!DOCTYPE xml>
相关文章推荐
- No grammar constraints (DTD or XML Schema) referenced in the document.
- No grammar constraints (DTD or XML Schema) referenced in the document. java项目xml文件报错或者出现警告
- [ xml ] [ log4j2 ] No grammar constraints (DTD or XML Schema) referenced in the document.
- xml文件出现警告:No grammar constraints (DTD or XML Schema) referenced in the document.
- Web.xml文件提示No grammar constraints (DTD or XML Schema) referenced in the document. 警告的解决方法
- eclipse xml文件警告No grammar constraints (DTD or XML Schema) referenced in the document.
- 如何解决XML文件中的警告提示“No grammar constraints (DTD or XML Schema) referenced in the document.” .
- 如何解决XML文件中的警告提示“No grammar constraints (DTD or XML Schema) referenced in the document.”
- No grammar constraints (DTD or XML Schema) referenced in the document.
- No grammar constraints (DTD or XML Schema) referenced in the document.
- 如何解决XML文件中的警告提示“No grammar constraints (DTD or XML Schema) referenced in the document.”
- 解决XML警告"No grammar constraints (DTD or XML Schema) referenced in the document"
- [Android] Eclipse Warning: No grammar constraints (DTD or XML schema) detected for the document
- Warning: No grammar constraints (DTD or XML schema) detected for the document
- [Android] Eclipse Warning: No grammar constraints (DTD or XML schema) detected for the document
- Eclipse关闭No grammar constraints (DTD or XML schema) detected for the document警告
- No grammar constraints (DTD or XML schema) detected for the document
- Eclipse关闭No grammar constraints (DTD or XML schema) detected for the document警告
- No grammar constraints (DTD or XML schema) detected for the document
- XML文件警告:No grammar constraints (DTD or XML schema) detected for the document.的解决方法!