xml文件中警告no grammar constraints (DTD or XML schema) referenced in the document

来源:互联网 发布:linux常用命令有哪些 编辑:程序博客网 时间:2024/05/18 03:48

eclipse中的xml文件警告no grammar constraints (DTD or XML schema) referenced in the document

根据http://blog.csdn.net/clementad/article/details/46314745

以及https://stackoverflow.com/questions/4551783/no-grammar-constraints-dtd-or-xml-schema-detected-for-the-document高票答案的回答


应该在xml头部加上:

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

另外可在eclipse的窗口选项页面选择关闭验证



阅读全文
0 0
原创粉丝点击