Pastebin launched a little side project called VERYVIRAL.com, check it out ;-) Want more features on Pastebin? Sign Up, it's FREE!
Guest

Untitled

By: a guest on Dec 16th, 2012  |  syntax: None  |  size: 0.86 KB  |  views: 19  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. <xsd:complexType name="BaseType" abstract="true">
  2.     <xsd:sequence>
  3.       <xsd:element name="field1" type="xsd:string"/>
  4.       <xsd:element name="field2" type="xsd:string"/>
  5.     </xsd:sequence>
  6.   </xsd:complexType>
  7.  
  8.   <xsd:complexType name="ExtendedType">
  9.     <xsd:complexContent>
  10.       <xsd:extension base="tns:BaseType">
  11.         <xsd:sequence>
  12.           <xsd:element name="fieldA" type="xsd:string"/>
  13.           <xsd:element name="fieldB" type="xsd:string"/>
  14.         </xsd:sequence>
  15.       </xsd:extension>
  16.     </xsd:complexContent>
  17.   </xsd:complexType>
  18.  
  19.   <xsd:element name="extendedType" type="tns:ExtendedType"/>
  20.        
  21. <extendedType>
  22.   <field1>hello</field1>
  23.   <field2>world</field2>
  24.   <fieldA>aaa</fieldA>
  25.   <fieldB>bbb</fieldB>
  26. </extendedType>
  27.        
  28. <extendedType>
  29.   <fieldA>aaa</fieldA>
  30.   <field1>hello</field1>
  31.   <field2>world</field2>
  32.   <fieldB>bbb</fieldB>
  33. </extendedType>