【问题标题】:No grammar constraints (DTD or XML schema) detected for the document未检测到文档的语法约束(DTD 或 XML 模式)
【发布时间】:2012-01-02 11:38:08
【问题描述】:

我有这样的代码,其中文档是我的主要元素。我有自己的命名空间:xmlns="http://wlasna_przestrzen.nazw.pl" 而且我想使用另一个命名空间仅通过 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 架构)。

【问题讨论】:

    标签: html xml eclipse xsd


    【解决方案1】:

    转到window -&gt; Preferences , then XML -&gt; XML Files -&gt; Validation 然后设置

    Indicate when no grammar is specifiedignore

    【讨论】:

      猜你喜欢
      • 2013-03-30
      • 2013-06-26
      • 2013-02-15
      • 2012-10-02
      • 1970-01-01
      • 2010-09-24
      • 2014-10-02
      • 1970-01-01
      相关资源
      最近更新 更多