chusstoockact
New Member
I want to define an XML type that can be extended in successive schema files, so that content can be added at different locations.The first extension seems to be ok. At the second extension, the XML editor says that myType cannot be redefined (already exists).How can I get this working?Thanks in advance, Hans.file1\[code\] <xs:element name="mainType" type="myType"/> <!-- Define types --> <xs:complexType name="myType"> <xs:sequence> <xs:element name="myTag" type="xs:string" /> </xs:sequence> </xs:complexType>\[/code\]file2\[code\]<xs:complexType name="myType"> <xs:complexContent> <xs:extension base="myType"> <xs:sequence> <xs:element name="MyNextType" type="xs:string" /> </xs:sequence> </xs:extension> </xs:complexContent></xs:complexType>\[/code\]file3\[code\]<xs:complexType name="myType"> <xs:complexContent> <xs:extension base="myType"> <xs:sequence> <xs:element name="MyOtherType" type="xs:string" /> </xs:sequence> </xs:extension> </xs:complexContent></xs:complexType>\[/code\]