Is it possible to extend an XSD type?

oirartnoc

New Member
If i have a type defined as \[code\]<xs:element name="serviceResponse"> <xs:complexType> <xs:sequence> <xs:element ref="status"/> <xs:element ref="info"/> <xs:element ref="code"/> </xs:sequence> </xs:complexType>\[/code\]And would like to have an additional type that defined as\[code\] <xs:element name="serviceResponse"> <xs:complexType> <xs:sequence> <xs:element ref="status"/> <xs:element ref="info"/> <xs:element ref="code"/> <xs:element ref="level"/> </xs:sequence> </xs:complexType> </xs:element>\[/code\]Is it possible to create a new type that extends the first type and only append the "level" element to the new type? (sort of like inheritance in Java)
 
Back
Top