summaryrefslogtreecommitdiffstats
path: root/examples/xsd2c/ex2/ex2.xsd
blob: 8554b66891a7fde5cac4a102559dd18b3b78b1c8 (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 xmlns:xs="http://www.w3.org/2001/XMLSchema">

  <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>