【问题标题】:XML/XSD error: Cannot find the declaration of element 'Document'XML/XSD 错误:找不到元素“文档”的声明
【发布时间】:2019-02-25 04:44:58
【问题描述】:

找不到元素“文档”的声明。

我正在尝试验证 XML 文件,但出现上述错误。我查看了它正在标记的行并进行了比较,但我没有看到问题...想法?

<Document xmlns="urn:iso:std:iso:20022:tech:xsd:pain.001.001.03"
          xmlns:xsi="http://www.w3.org/2001/XMLSchemainstance">

【问题讨论】:

    标签: xml xsd xsd-validation xml-validation


    【解决方案1】:

    如果您想要完整的答案,请发布完整的问题。与此同时……

    请注意,您的错误消息甚至与您的 XML 不一致:

    • 在您的 XML 中,您的 Document 元素根据其默认命名空间声明位于 urn:iso:std:iso:20022:tech:xsd:pain.001.001.03 命名空间中。

    • 在您的错误消息中,没有提到 Document 在命名空间中。

    另请参阅:

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2021-12-16
      • 1970-01-01
      • 1970-01-01
      • 2012-07-02
      相关资源
      最近更新 更多