Rank: Newbie
Joined: 10/10/2008 Posts: 5 Location: alexandria
|
Hi,
In my application, I generate xsd's in code for end-user use. I would like to validate the generated xsds (that they are valid xsds).
I thought I would be able to use w3c's "schema of schemas" to validate my xsds.
So I took the schema at: http://www.w3.org/2001/XMLSchema.xsd and put it in XMLSpy. But it fails to validate. Shouldn't it be valid in itself?
I get an error: "Group xs:defRef is already declared"
Suggestions on how what needs to be done to make the "schema of schemas" validate in XMLSpy?
Thanks!
|
Rank: Advanced Member
Joined: 9/9/2005 Posts: 483 Location: AT
|
Hello,
I am afraid that it because our validator has this schema integrated into it, it is not possible to use it directly.
Essentially, the validator already has the type definitions, element & attribute declarations, attribute groups, etc... built-in and therefore reports a name clash for the definitions & declarations in XMLSchema.xsd.
|