What's wrong in this schema?
Posted: Thu Dec 13, 2007 1:35 pm
Good morning:
I'm trying to use JAXB and i have written the following schema:
I'm trying to use JAXB and i have written the following schema:
when i validate my schema i receive the following error:
<xsd:complexType name="MetaInformation"> <xsd:sequence> <xsd:element name="description" type="xsd:string" default=""/> <xsd:element name="keyword" type="xsd:string" maxOccurs="unbounded" minOccurs="0" default="" /> </xsd:sequence> </xsd:complexType> <xsd:complexType name = "xmldisplaydefinition"> <xsd:attribute name="identifier" type="xsd:string"/> <xsd:attribute name="kindOfDisplay" type="xsd:string"/> <xsd:sequence> <xsd:element name="metaInformation" type="MetaInformation" maxOccurs="1" minOccurs="0"/> </xsd:sequence> </xsd:complexType>
Invalid per cvc-complex-type.1.2.4: element {http://www.w3.org/2001/XMLSchema}:sequence not allowed here (5) in element {http://www.w3.org/2001/XMLSchema}:complexType, expecting
[{http://www.w3.org/2001/XMLSchema}:anyAt ... ibuteGroup]