方法一:常用方法 關閉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">