没有为文档检测到语法约束(DTD或XML模式) [英] No grammar constraints (DTD or XML schema) detected for the document
本文介绍了没有为文档检测到语法约束(DTD或XML模式)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我想使用另一个命名空间只通过html
< dokument
xmlns =http://wlasna_przestrzen.nazw.pl
xmlns:xsi =http://www.w3.org/ 2001 / XMLSchema-instance
xsi:schemaLocation =http://wlasna_przestrzen.nazw.pl/ albumy.xsd
xmlns:JĘZYK_HTML=http://www.w3.org/1999/ xhtml
>
我有一个文件xsd,其中包含:
< xsd:schema
xmlns:nasza_przestrzeń=http://wlasna_przestrzen.nazw.pl
targetNamespace =http://wlasna_przestrzen.nazw。 pl
xmlns:xsd =http://www.w3.org/2001/XMLSchema
xmlns:html =http://www.w3.org/1999/xhtml
elementFormDefault =qualified
attributeFormDefault =unqualified>
我的问题是为什么我有这样的错误:
没有为文档检测到语法约束(DTD或XML模式)。
解决方案
转到窗口 - >首选项,然后是XML - > XML文件 - >验证
然后设置
指示何时没有语法被指定
到忽略
I have a code like this, where dokument is my main element. I have my own namespace: xmlns="http://wlasna_przestrzen.nazw.pl" And I would like to use another namespace only to putting screens via html
<dokument
xmlns="http://wlasna_przestrzen.nazw.pl"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://wlasna_przestrzen.nazw.pl/ albumy.xsd"
xmlns:JĘZYK_HTML="http://www.w3.org/1999/xhtml"
>
I have a file xsd which contains:
<xsd:schema
xmlns:nasza_przestrzeń="http://wlasna_przestrzen.nazw.pl"
targetNamespace="http://wlasna_przestrzen.nazw.pl"
xmlns:xsd="http://www.w3.org/2001/XMLSchema"
xmlns:html="http://www.w3.org/1999/xhtml"
elementFormDefault="qualified"
attributeFormDefault="unqualified" >
And my question is why I have an error like this:
No grammar constraints (DTD or XML schema) detected for the document.
解决方案
Go to window -> Preferences , then XML -> XML Files -> Validation
then set
Indicate when no grammar is specified
to ignore
这篇关于没有为文档检测到语法约束(DTD或XML模式)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文