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

前端 未结 19 2322
时光说笑
时光说笑 2020-11-27 10:35

I have this dtd : http://fast-code.sourceforge.net/template.dtd But when I include in an xml I get the warning : No grammar constraints (DTD or XML schema) detected for the

19条回答
  •  慢半拍i
    慢半拍i (楼主)
    2020-11-27 11:08

    This worked for me in Eclipse 3.7.1: Go to the Preferences window, then XML -> XML Files -> Validation. Then in the Validating files section of the preferences panel on the right, choose Ignore in the drop down box for the "No grammar specified" preference. You may need to close the file and then reopen it to make the warning go away.

    (I know this question is old but it was the first one I found when searching on the warning, so I'm posting the answer here for other searchers.)

提交回复
热议问题