No grammar constraints (DTD or XML schema) detected for the document.

該問題有2種解決方案:


方法一:常用方法   關閉XML驗證

工具欄:windows => preferences => xml => xml files => validation => Indicate when no grammar is specified:選擇Ignore即可。

 

方法二:(個人推薦)

添加 內容如下

<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/2002/xmlspec/dtd/2.10/xmlspec.dtd">
發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章