-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpeople.xsd
26 lines (26 loc) · 1.13 KB
/
people.xsd
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
26
<xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema">
<xsd:complexType mixed="true" name="healthprofiletype">
<xsd:sequence>
<xsd:element name="lastupdate" type="xsd:dateTime"/>
<xsd:element name="weight" type="xsd:decimal"/>
<xsd:element name="height" type="xsd:decimal"/>
<xsd:element name="bmi" type="xsd:decimal"/>
</xsd:sequence>
</xsd:complexType>
<xsd:complexType mixed="true" name="persontype">
<xsd:sequence>
<xsd:element name="firstname" type="xsd:dateTime"/>
<xsd:element name="lastname" type="xsd:string"/>
<xsd:element name="birthdate" type="xsd:dateTime"/>
<xsd:element name="healthprofile" type="healthprofiletype"/>
</xsd:sequence>
<xsd:attribute name="id" type ="xsd:integer" use="required"/>
</xsd:complexType>
<xsd:element name="people">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="person" type="persontype" minOccurs="0" maxOccurs="unbounded"/>
</xsd:sequence>
</xsd:complexType>
</xsd:element>
</xsd:schema>