XSD 问题:元素上的属性值相对于其类型无效 [英] XSD problem: The value of attribute on element is not valid with respect to its type

查看:44
本文介绍了XSD 问题:元素上的属性值相对于其类型无效的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

(首先,我正在努力学习如何处理xsd文件,我知道的很少)

(First of all, I'm trying to learn how to handle xsd files, I know very little)

我得到了 this xsd,然后复制到 Eclipse IDE,它说第 26 行有一个错误:

I got this xsd, and just copy to Eclipse IDE, and it says there an error on line 26:

<xs:element name="Issuer" type="dkx:IssuerType" />

说:

cvc-attribute.3:值属性 'type' 的 'dkx:IssuerType'在元素 'xs:element' 上无效关于它的类型,'QName'.

cvc-attribute.3: The value 'dkx:IssuerType' of attribute 'type' on element 'xs:element' is not valid with respect to its type, 'QName'.

此错误消息中的所有内容都在指定的行中,除了QName"(它是什么?).

Everything in this error message is in the specified line, except the "QName" (what is it?).

知道如何解决这个问题吗?(因为这是一个示例文件,我假设它是一个独立的文件,希望是)

Any idea how to solve this? (as this is an example file, I'm assuming it is an independent file, hope it is)

推荐答案

发现:我使用了错误的文件扩展名.xml",而正确的是.xsd".

Found: I was using wrong file extension, ".xml", while the correct is ".xsd".

这篇关于XSD 问题:元素上的属性值相对于其类型无效的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆