Failed to read schema document [XSD] because

DragonK

I am getting the following error message:

Failed to read schema document 'ofbiz.apache.org/dtds/widget-screen.xsd', because 1) could not find the document; 2) the document could not be read; 3) the root element of the document is not <xsd:schema>.

I have got a XML file as follows:

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE xml>
<screens xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
    xsi:noNamespaceSchemaLocation="http://ofbiz.apache.org/dtds/widget-screen.xsd">
    <screen name="ShippingAgreement">
        <section>
            <actions>
                <set field="selectedMenuItem" value="facilityShipment"/>
                <set field="selectedSubMenuItem" value="ShippingContract"/>
            </actions>
            <widgets>
                <decorator-screen name="DelysCommonDecorator" location="${parameters.mainDecoratorLocation}">
                    <decorator-section name="body">

                    </decorator-section>
                </decorator-screen>
            </widgets>
       </section>
    </screen>
</screens>

Why can't I validate it against XSD file http://ofbiz.apache.org/dtds/widget-screen.xsd?

kjhughes

I am able to access http://ofbiz.apache.org/dtds/widget-screen.xsd from a browser. Assuming that you too have access to the XSD specified by xsi:noNamespaceSchemaLocation, delete the following line from your XML

<!DOCTYPE xml>

and your XML will be valid against the given XSD.

本文收集自互联网,转载请注明来源。

如有侵权,请联系[email protected] 删除。

编辑于
0

我来说两句

0条评论
登录后参与评论

相关文章

来自分类Dev

Is there a xsd or xml schema for job in Jenkins?

来自分类Dev

找不到元素'xsd:schema'的声明

来自分类Dev

验证XML-Schema(xsd)错误

来自分类Dev

找不到元素'xsd:schema'的声明

来自分类Dev

Failed validating 'type' json schema

来自分类Dev

EF inherited object insert failed because of mapping

来自分类Dev

什么时候值得创建XML Schema(XSD)?

来自分类Dev

如何针对XML Schema(XSD)或RelaxNG验证JSON?

来自分类Dev

wsdl嵌入xsd时进行Mule Schema验证

来自分类Dev

SAXParseException,文档的根元素不是<xsd:schema>

来自分类Dev

XSD验证错误:找不到元素'xs:schema'的声明

来自分类Dev

.XML-.XSD如何使用Schema XSD文件引用XML文件?

来自分类Dev

XSLT - XSD 文件 - 在哪里可以找到 schema.xsd 文件 - 请提出建议

来自分类Dev

schema_reference.4:无法读取架构文档'http://www.springframework.org/schema/beans/spring-beans-4.1.5.xsd

来自分类Dev

将Any-Element添加到动态创建的XSD-Schema时出现问题

来自分类Dev

针对在WSO2 ESB中导入另一个xsd的Schema验证XML

来自分类Dev

XML Schema(XSD)中十进制类型的限制是什么?

来自分类Dev

无法读取架构文档“ http://www.springframework.org/schema/tool/spring-tool-4.1.xsd”

来自分类Dev

具有名称空间的.cs类中的XSD-Schema

来自分类Dev

无法读取架构文档“ http://www.springframework.org/schema/tool/spring-tool-4.1.xsd”

来自分类Dev

如何将具有ref =“ xs:schema”属性的xsd类型转换为c#类?

来自分类Dev

XSD Schema 元素可以是两种类型之一

来自分类Dev

TFS Database Backup Failed : There is an error in XML document - but which Doc?

来自分类Dev

当一部分XSD嵌套在WSDL中时,如何将Schema添加到Marshaller

来自分类Dev

如何解决错误:cvc-elt.1:如果没有命名空间,找不到元素'xsd:schema'的声明?

来自分类Dev

XML Schema(XSD):是否可以基于另一个元素为一个元素创建规则/关系?

来自分类Dev

当一部分XSD嵌套在WSDL中时,如何将Schema添加到Marshaller

来自分类Dev

Mule独立无法读取架构文档“ http://www.mulesoft.org/schema/mule/ee/dw/current/dw.xsd”

来自分类Dev

在Spring MVC中运行JUnit测试会抛出:org.xml.sax.SAXParseException; systemId:http://www.springframework.org/schema/mvc/spring-mvc.xsd

Related 相关文章

  1. 1

    Is there a xsd or xml schema for job in Jenkins?

  2. 2

    找不到元素'xsd:schema'的声明

  3. 3

    验证XML-Schema(xsd)错误

  4. 4

    找不到元素'xsd:schema'的声明

  5. 5

    Failed validating 'type' json schema

  6. 6

    EF inherited object insert failed because of mapping

  7. 7

    什么时候值得创建XML Schema(XSD)?

  8. 8

    如何针对XML Schema(XSD)或RelaxNG验证JSON?

  9. 9

    wsdl嵌入xsd时进行Mule Schema验证

  10. 10

    SAXParseException,文档的根元素不是<xsd:schema>

  11. 11

    XSD验证错误:找不到元素'xs:schema'的声明

  12. 12

    .XML-.XSD如何使用Schema XSD文件引用XML文件?

  13. 13

    XSLT - XSD 文件 - 在哪里可以找到 schema.xsd 文件 - 请提出建议

  14. 14

    schema_reference.4:无法读取架构文档'http://www.springframework.org/schema/beans/spring-beans-4.1.5.xsd

  15. 15

    将Any-Element添加到动态创建的XSD-Schema时出现问题

  16. 16

    针对在WSO2 ESB中导入另一个xsd的Schema验证XML

  17. 17

    XML Schema(XSD)中十进制类型的限制是什么?

  18. 18

    无法读取架构文档“ http://www.springframework.org/schema/tool/spring-tool-4.1.xsd”

  19. 19

    具有名称空间的.cs类中的XSD-Schema

  20. 20

    无法读取架构文档“ http://www.springframework.org/schema/tool/spring-tool-4.1.xsd”

  21. 21

    如何将具有ref =“ xs:schema”属性的xsd类型转换为c#类?

  22. 22

    XSD Schema 元素可以是两种类型之一

  23. 23

    TFS Database Backup Failed : There is an error in XML document - but which Doc?

  24. 24

    当一部分XSD嵌套在WSDL中时,如何将Schema添加到Marshaller

  25. 25

    如何解决错误:cvc-elt.1:如果没有命名空间,找不到元素'xsd:schema'的声明?

  26. 26

    XML Schema(XSD):是否可以基于另一个元素为一个元素创建规则/关系?

  27. 27

    当一部分XSD嵌套在WSDL中时,如何将Schema添加到Marshaller

  28. 28

    Mule独立无法读取架构文档“ http://www.mulesoft.org/schema/mule/ee/dw/current/dw.xsd”

  29. 29

    在Spring MVC中运行JUnit测试会抛出:org.xml.sax.SAXParseException; systemId:http://www.springframework.org/schema/mvc/spring-mvc.xsd

热门标签

归档