- From: Eddie Robertsson <eddie@allette.com.au>
- Date: Mon, 05 Nov 2001 17:59:44 +1100
- To: Ravin.Shah@morganstanley.com
- CC: xmlschema-dev@w3.org
> Error :order.xml:3:121: Schema error: ComplexType 'order': Invalid child > 'element' in the complex type. > Error :order.xml:3:121: Schema error: ComplexType 'shipAddress': Invalid > child 'element' in the complex type. > Error :order.xml:3:121: Schema error: ComplexType 'cdItem': Invalid > child 'element' in the complex type. > Error :order.xml:3:121: Schema error: ComplexType 'cdItems': Invalid > child 'element' in the complex type. <snip/> > <xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema" > targetNamespace="AnotherTestSpace"> > <xsd:element name="shipOrder" type="order"/> > <xsd:complexType name="shipAddress"> > <xsd:element name="name" type="xsd:string"/> > <xsd:element name="street" type="xsd:string"/> > <xsd:element name="address" type="xsd:string"/> > <xsd:element name="country" type="xsd:string"/> > </xsd:complexType> You need to have either one of <xs:sequence>, <xs:choice> or <xs:all> as the first child of <xs:complexType> Cheers, /Eddie
Received on Monday, 5 November 2001 01:53:15 UTC