XML schema validation problem with XMLSpy

Blue Doze

Usenet Archive
Joined
Mar 9, 2007
Messages
3
Reaction score
0
Hello,

I have the following XML schema fragment:

<xs:complexType name="type.1">
<xs:simpleContent>
<xs:restriction base="ns:type">
<xs:simpleType>
<xs:restriction base="xs:positiveInteger"/>
</xs:simpleType>
</xs:restriction>
</xs:simpleContent>
</xs:complexType>
<xs:complexType name="type">
<xs:simpleContent>
<xs:extension base="xs:anySimpleType">
<xs:attributeGroup ref="nx:att.group"/>
</xs:extension>
</xs:simpleContent>
</xs:complexType>

XMLSpy gives me the below error when I'm in the schema/WSDL view, while the text view works fine:

File testSchema.xsd is not valid.
The content type (simpleType) of complexType "type.1" cannot restrict simpleType 'anySimpleType'!

Is this a problem in my schema, or it's a bug in the XMLSPy validator

I'm using XMLSpy 2006 rel. 3 sp2

I tried one online schema validator, on the w3c site, and it didn't complain.
 

Jerry (11)

Usenet Archive
Joined
Mar 5, 2007
Messages
5
Reaction score
0
Hello,

I have the following XML schema fragment:

<xs:complexType name="type.1">
<xs:simpleContent>
<xs:restriction base="ns:type">
<xs:simpleType>
<xs:restriction base="xs:positiveInteger"/>
</xs:simpleType>
</xs:restriction>
</xs:simpleContent>
</xs:complexType>
<xs:complexType name="type">
<xs:simpleContent>
<xs:extension base="xs:anySimpleType">
<xs:attributeGroup ref="nx:att.group"/>
</xs:extension>
</xs:simpleContent>
</xs:complexType>

XMLSpygives me the below error when I'm in the schema/WSDL view, while the text view works fine:

File testSchema.xsd is not valid.
The content type (simpleType) of complexType "type.1" cannot restrict simpleType 'anySimpleType'!

Is this a problem in my schema, or it's a bug in theXMLSPyvalidator

I'm usingXMLSpy2006 rel. 3 sp2

I tried one online schema validator, on the w3c site, and it didn't complain.

Hello,

The Text View is correct so rely on that validation! I have reported this issue to the development team for a fix so the error is not raised in the Schema Design View. Please excuse us for the inconvenience.

(http://www.altova.com )

Best regards,

.... Jerry Sheehan
.... Pre-Sales Engineer
.... Altova, Inc.
.... 978-816-1614
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
548,049
Messages
3,104,245
Members
248,133
Latest member
DujonT

Latest Threads

Top