-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathlanguage_holiday_agency.xsd
83 lines (82 loc) · 3.85 KB
/
language_holiday_agency.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
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
<?xml version="1.0" encoding="UTF-8"?>
<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema"
targetNamespace="urn:mycompany:language_holiday_agency"
xmlns="urn:mycompany:language_holiday_agency"
elementFormDefault="qualified">
<!-- Defines the root element for the language holiday agency -->
<xs:element name="language_holiday_agency">
<xs:complexType>
<xs:sequence>
<!-- Optional "clients" element with a collection of "client" elements -->
<xs:element name="clients" minOccurs="0">
<xs:complexType>
<xs:sequence>
<xs:element name="client" maxOccurs="unbounded">
<xs:complexType>
<xs:sequence>
<xs:element name="name" type="xs:string"/>
<!-- Element for the client's email -->
<xs:element name="email" type="xs:string"/>
<!-- Element for the client's chosen language holiday destination -->
<xs:element name="language_holiday" type="xs:string"/>
</xs:sequence>
</xs:complexType>
</xs:element>
</xs:sequence>
</xs:complexType>
</xs:element>
<!-- Optional "language_holidays" element with a collection of "language_holiday" elements -->
<xs:element name="language_holidays" minOccurs="0">
<xs:complexType>
<xs:sequence>
<xs:element name="language_holiday" maxOccurs="unbounded">
<xs:complexType>
<xs:sequence>
<!-- Element for the language holiday's destination -->
<xs:element name="destination" type="xs:string"/>
<!-- Element for the language(s) offered at the holiday destination -->
<xs:element name="languages" type="xs:string"/>
<!-- Element for the duration of the language holiday in days -->
<xs:element name="duration" type="xs:int"/>
<!-- Element for the language classes offered during the holiday -->
<xs:element name="language_classes" type="xs:string"/>
<!-- Element for the language proficiency test offered during the holiday -->
<xs:element name="language_tests" type="xs:string"/>
<!-- Element for the activities offered during the language holiday -->
<xs:element name="activities" type="xs:string"/>
<xs:element name="dates">
<xs:complexType>
<xs:sequence>
<!-- Element for the start and end dates of the language holiday -->
<xs:element name="start_date" type="xs:date"/>
<xs:element name="end_date" type="xs:date"/>
</xs:sequence>
</xs:complexType>
</xs:element>
</xs:sequence>
</xs:complexType>
</xs:element>
</xs:sequence>
</xs:complexType>
</xs:element>
<!-- Optional "teachers" element with a collection of "teacher" elements -->
<xs:element name="teachers" minOccurs="0">
<xs:complexType>
<xs:sequence>
<xs:element name="teacher" maxOccurs="unbounded">
<xs:complexType>
<xs:sequence>
<!-- Element for the teacher's name -->
<xs:element name="name" type="xs:string"/>
<!-- Element for the language the teacher can teach -->
<xs:element name="language" type="xs:string"/>
</xs:sequence>
</xs:complexType>
</xs:element>
</xs:sequence>
</xs:complexType>
</xs:element>
</xs:sequence>
</xs:complexType>
</xs:element>
</xs:schema>