summaryrefslogtreecommitdiffstats
path: root/examples/xsd2c/ex3/ex3.xsd
blob: 1bb649ad79fccbb0d847ab37666d6ca438656656 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
<schema>

  <complexType name="Person">
    <attribute name="id" type="xs:string"/>
    <sequence>
      <element name="Name" type="xs:string"/>
      <element name="Lastname" type="xs:string"/>
      <element name="Degree" type="xs:int"/>
      <element name="Project" type="xs:string" minOccurs="0" maxOccurs="unbounded"/>
    </sequence>
  </complexType>

  <complexType name="Customer">
    <complexContent>
      <extension base="Person">
        <attribute name="pos" type="xs:string"/>
        <sequence>
          <element name="JobID" type="xs:string"/>
          <element name="FirmaID" type="xs:string"/>
        </sequence>
      </extension>
    </complexContent>
  </complexType>

</schema>