I read in this list that this first example is OK, but is there a way to do
this with a type other than "any". Instead of any, I would like my own
type, then I would like to substitute derived types as is done here. My
example is after the $$$$$$$$$$$$$$$$$$$$$$$$$, and I hope it is
valid. Please help
<complexType name="basetype">
<sequence>
<any maxOccurs="unbounded"/>
</sequence>
</complexType>
<complexType name="newtype">
<complexContent>
<restriction base="my:basetype">
<sequence>
<element name="e1" type="string"/>
<element name="e2" type="integer" minOccurs="0"/>
<element name="e3" type="date" minOccurs="0"/>
</sequence>
</restriction>
</complexContent>
</complexType>
$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$
<complexType name="basetype">
<sequence>
<element name="item" type="myType" maxOccurs="unbounded"/>
</sequence>
</complexType>
<complexType name="newtype">
<complexContent>
<restriction base="my:basetype">
<sequence>
<element name="e1" type="myTypeRestriction"/>
<element name="e2" type="myTypeRestriction2" minOccurs="0"/>
<element name="e3" type="myTypeRestriction3" minOccurs="0"/>
</sequence>
</restriction>
</complexContent>
</complexType>