Student
Student

Reputation: 28345

XSD problem: The value of attribute on element is not valid with respect to its type

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

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" />

saying:

cvc-attribute.3: The value 'dkx:IssuerType' of attribute 'type' on element 'xs:element' is not valid with respect to its type, '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)

Upvotes: 0

Views: 14444

Answers (2)

Student
Student

Reputation: 28345

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

Upvotes: 4

Cheeso
Cheeso

Reputation: 192417

I suspect the type dkx:IssuerType has not been defined, according to Eclipse.

Maybe you should start with a more basic overview and work your way through. Try this: http://www.w3schools.com/Schema/default.asp

Upvotes: 1

Related Questions