-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpeople.xsd
29 lines (26 loc) · 1.03 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
27
28
29
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<xs:schema version="1.0" xmlns:xs="http://www.w3.org/2001/XMLSchema">
<xs:element name="people" type="people"/>
<xs:complexType name="people">
<xs:sequence>
<xs:element name="person" type="person" maxOccurs="unbounded"/>
</xs:sequence>
</xs:complexType>
<xs:complexType name="person">
<xs:sequence>
<xs:element type="xs:string" name="firstname" />
<xs:element type="xs:string" name="lastname" />
<xs:element type="xs:dateTime" name="birthdate" />
<xs:element name="healthprofile" type="healthprofile" minOccurs="0" maxOccurs="1"/>
</xs:sequence>
<xs:attribute name="id" type="xs:ID" use="required"/>
</xs:complexType>
<xs:complexType name="healthprofile">
<xs:sequence>
<xs:element type="xs:dateTime" name="lastupdate" />
<xs:element type="xs:float" name="weight" />
<xs:element type="xs:float" name="height" />
<xs:element type="xs:float" name="bmi" />
</xs:sequence>
</xs:complexType>
</xs:schema>