I have this complex type:
<xsd:complexType name="Identifier">
<xsd:sequence>
<xsd:element name="Id" type="xsd:string"/>
<xsd:element name="Version" type="xsd:string"/>
</xsd:sequence>
</xsd:complexType>
Now I want to include this in another complex type, and I did it like this:
<xsd:complexType>
<xsd:sequence>
<xsd:element name="Id" type="Identifier"/>
</xsd:sequence>
</xsd:complexType>
This is not what I really want. I want to include elements of type identifier directly in the second complex type without creating a new element. For example. just as it is done:
<xsd:complexType>
<xsd:sequence>
<xsd:element name="Id" type="xsd:string"/>
<xsd:element name="Version" type="xsd:string"/>
</xsd:sequence>
</xsd:complexType>
Hope this makes sense.
Thanks in advance.
source
share