Hi Rudra, It means that your Schema is not conform to the W3C recommendation. Indeed a complexType cannot be a restriction of a simpleType:
- <xsd:complexType name="MetadataURLType"> - <xsd:simpleContent> - <xsd:restriction base="xsd:string"> ----------------> WRONG since xsd:string refers to the XML Schema datatype string which is a simpleType. You should create a top-level complexType that 'wraps' a xsd:string and then extend that type. You can search the archive for other tips. Hope that helps, Arnaud > -----Original Message----- > From: Peram, Rudra [mailto:[EMAIL PROTECTED]] > Sent: Friday, May 24, 2002 9:40 PM > To: [EMAIL PROTECTED] > Subject: [castor-dev] IllegalStateException.. > > Hi, > When I try to parse the following xsd code, an error is given. > > - <xsd:complexType name="MetadataURLType"> > - <xsd:simpleContent> > - <xsd:restriction base="xsd:string"> > - <xsd:attribute name="type" use="required"> > - <xsd:simpleType> > - <xsd:restriction base="NMTOKEN"> > <xsd:enumeration value="FGDC" /> > </xsd:restriction> > </xsd:simpleType> > </xsd:attribute> > - <xsd:attribute name="format" use="required"> > - <xsd:simpleType> > - <xsd:restriction base="NMTOKEN"> > <xsd:enumeration value="XML" /> > </xsd:restriction> > </xsd:simpleType> > </xsd:attribute> > </xsd:restriction> > </xsd:simpleContent> > </xsd:complexType> > > > Error: > java.lang.IllegalStateException: MetadataURLTypeA complex type cannot be a > restr > iction of a simpleType. > > Why is this happening & what does this mean?? > > Thanks > Rudra > > ----------------------------------------------------------- > If you wish to unsubscribe from this mailing, send mail to > [EMAIL PROTECTED] with a subject of: > unsubscribe castor-dev ----------------------------------------------------------- If you wish to unsubscribe from this mailing, send mail to [EMAIL PROTECTED] with a subject of: unsubscribe castor-dev
