summaryrefslogtreecommitdiffstats
path: root/examples/xsd2c/ex2/ex2.xsd
blob: b61cf547db039d27d1ca86d5b1d52411be5a26b4 (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
<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"/>
      <element name="Address" type="Address"/>
    </sequence>
  </complexType>

  <complexType name="Address">
   <sequence>
      <element name="Street" type="xs:string"/>
      <element name="StreetNum" type="xs:string"/>
      <element name="Zip" type="xs:int"/>
      <element name="City" type="xs:string"/>
      <element name="Land" type="xs:string"/>
    </sequence>
  </complexType>

</schema>