-
Notifications
You must be signed in to change notification settings - Fork 16
/
Copy pathv2.7.xsd
487 lines (474 loc) · 20.1 KB
/
v2.7.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
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
<?xml version="1.0" encoding="utf-8"?>
<xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema" version="1.0">
<!-- boolean -->
<xsd:simpleType name="bool">
<xsd:restriction base="xsd:string">
<xsd:enumeration value="1"/>
<xsd:enumeration value="0"/>
</xsd:restriction>
</xsd:simpleType>
<!-- positive decimal numbers -->
<xsd:simpleType name="positiveDecimal">
<xsd:restriction base="xsd:decimal">
<xsd:minInclusive value="0"/>
</xsd:restriction>
</xsd:simpleType>
<!-- positive integer numbers -->
<xsd:simpleType name="positiveInteger">
<xsd:restriction base="xsd:integer">
<xsd:minInclusive value="0"/>
</xsd:restriction>
</xsd:simpleType>
<!-- property type -->
<xsd:simpleType name="propertyType">
<xsd:restriction base="xsd:string">
<xsd:enumeration value="house"/>
<xsd:enumeration value="apartment"/>
<xsd:enumeration value="duplex"/>
<xsd:enumeration value="bungalow"/>
<xsd:enumeration value="site"/>
<xsd:enumeration value="commercial"/>
</xsd:restriction>
</xsd:simpleType>
<!-- house type -->
<xsd:simpleType name="houseType">
<xsd:restriction base="xsd:string">
<xsd:enumeration value="detached"/>
<xsd:enumeration value="semi-detached"/>
<xsd:enumeration value="terraced"/>
<xsd:enumeration value="end-of-terrace"/>
<xsd:enumeration value="townhouse"/>
</xsd:restriction>
</xsd:simpleType>
<!-- commercial type -->
<xsd:simpleType name="commercialType">
<xsd:restriction base="xsd:string">
<xsd:enumeration value="land"/>
<xsd:enumeration value="shop"/>
<xsd:enumeration value="hotel"/>
</xsd:restriction>
</xsd:simpleType>
<!-- element 'daft' -->
<xsd:element name="daft">
<xsd:complexType>
<xsd:all>
<xsd:element name="overseas_sales" minOccurs="0" >
<xsd:complexType>
<xsd:sequence>
<xsd:element name="overseas_sale_ad" type="overseasSaleAdType" minOccurs="0" maxOccurs="unbounded" />
</xsd:sequence>
</xsd:complexType>
</xsd:element>
<xsd:element name="overseas_rental" minOccurs="0" >
<xsd:complexType>
<xsd:sequence>
<xsd:element name="overseas_rental_ad" type="overseasRentalAdType" minOccurs="0" maxOccurs="unbounded" />
</xsd:sequence>
</xsd:complexType>
</xsd:element>
</xsd:all>
<xsd:attribute name="version" type="xsd:string" />
</xsd:complexType>
</xsd:element>
<xsd:complexType name="overseasSaleAdType">
<xsd:sequence>
<xsd:element name="country" type="xsd:string">
<xsd:annotation>
<xsd:documentation>Country of property</xsd:documentation>
</xsd:annotation>
</xsd:element>
<xsd:element name="region" type="xsd:string">
<xsd:annotation>
<xsd:documentation>Administrative level of country immediately below country level</xsd:documentation>
</xsd:annotation>
</xsd:element>
<xsd:element name="area" type="xsd:string">
<xsd:annotation>
<xsd:documentation>Administrative level beneath 'region'</xsd:documentation>
</xsd:annotation>
</xsd:element>
<xsd:element name="address" type="xsd:string">
<xsd:annotation>
<xsd:documentation>Address of property beneath area level</xsd:documentation>
</xsd:annotation>
</xsd:element>
<xsd:element name="property_type" type="propertyType">
<xsd:annotation>
<xsd:documentation>Type of property.</xsd:documentation>
</xsd:annotation>
</xsd:element>
<xsd:element name="house_type" type="houseType">
<xsd:annotation>
<xsd:documentation>If property_type is 'house', there should be a complementary attribute to declare, from the following option set</xsd:documentation>
</xsd:annotation>
</xsd:element>
<xsd:element name="commercial_type" type="commercialType">
<xsd:annotation>
<xsd:documentation>If property_type is 'commercial', there should be a complementary attribute to declare, form the following option set</xsd:documentation>
</xsd:annotation>
</xsd:element>
<xsd:element name="description" type="xsd:string">
<xsd:annotation>
<xsd:documentation>Detailed property description</xsd:documentation>
</xsd:annotation>
</xsd:element>
<xsd:element name="price" type="positiveInteger">
<xsd:annotation>
<xsd:documentation>Price of the property in euros</xsd:documentation>
</xsd:annotation>
</xsd:element>
<xsd:element name="price_type">
<xsd:annotation>
<xsd:documentation>The price type describes the nature of the price value above. There are also a set of options for this field</xsd:documentation>
</xsd:annotation>
<xsd:simpleType>
<xsd:restriction base="xsd:string">
<xsd:enumeration value="region"/>
<xsd:enumeration value="excess"/>
<xsd:enumeration value="from"/>
<xsd:enumeration value="on application"/>
</xsd:restriction>
</xsd:simpleType>
</xsd:element>
<xsd:element name="bathroom_number" type="positiveInteger">
<xsd:annotation>
<xsd:documentation>Number of bathrooms in the property</xsd:documentation>
</xsd:annotation>
</xsd:element>
<xsd:element name="bedroom_number" type="positiveInteger">
<xsd:annotation>
<xsd:documentation>Number of bedrooms in the property</xsd:documentation>
</xsd:annotation>
</xsd:element>
<xsd:element name="is_new_development" type="bool" minOccurs="0" >
<xsd:annotation>
<xsd:documentation>If set to 1, the property is marked as a new development, 0 means it is a second-hand property</xsd:documentation>
</xsd:annotation>
</xsd:element>
<xsd:element name="units_available" type="positiveInteger" minOccurs="0" >
<xsd:annotation>
<xsd:documentation>If is_new_development is set, this field may specify the number of units available in the development</xsd:documentation>
</xsd:annotation>
</xsd:element>
<xsd:element name="new_development_availability" type="xsd:string" minOccurs="0" >
<xsd:annotation>
<xsd:documentation>If is_new_development is set, this field may specify any additional feature of the development</xsd:documentation>
</xsd:annotation>
</xsd:element>
<xsd:element name="square_metres" type="positiveDecimal" minOccurs="0">
<xsd:annotation>
<xsd:documentation>The size of the property measured in square metres</xsd:documentation>
</xsd:annotation>
</xsd:element>
<xsd:element name="acres" type="positiveDecimal" minOccurs="0">
<xsd:annotation>
<xsd:documentation>The size of area of the property measured in acres</xsd:documentation>
</xsd:annotation>
</xsd:element>
<xsd:element name="directions" type="xsd:string" minOccurs="0">
<xsd:annotation>
<xsd:documentation>Directions to the property</xsd:documentation>
</xsd:annotation>
</xsd:element>
<xsd:element name="co2_rating" type="xsd:string" minOccurs="0">
<xsd:annotation>
<xsd:documentation>Information about the co2 rating of the property.</xsd:documentation>
</xsd:annotation>
</xsd:element>
<xsd:element name="energy_rating" type="xsd:string" minOccurs="0">
<xsd:annotation>
<xsd:documentation>Information about the energy rating of the property</xsd:documentation>
</xsd:annotation>
</xsd:element>
<xsd:element name="viewing_details" type="xsd:string" minOccurs="0">
<xsd:annotation>
<xsd:documentation>Information about when and how to visit the property for a viewing</xsd:documentation>
</xsd:annotation>
</xsd:element>
<xsd:element name="phone1" type="xsd:string">
<xsd:annotation>
<xsd:documentation>Primary contact phone number of the landlord or the representing agent</xsd:documentation>
</xsd:annotation>
</xsd:element>
<xsd:element name="phone2" type="xsd:string" minOccurs="0">
<xsd:annotation>
<xsd:documentation>Secondary contact phone number of the landlord or the representing agent</xsd:documentation>
</xsd:annotation>
</xsd:element>
<xsd:element name="contact_name" type="xsd:string">
<xsd:annotation>
<xsd:documentation>Name of the contact person</xsd:documentation>
</xsd:annotation>
</xsd:element>
<xsd:element name="phone_info" type="xsd:string" minOccurs="0">
<xsd:annotation>
<xsd:documentation>State the restraints, if any, on contacting the contact person by phone</xsd:documentation>
</xsd:annotation>
</xsd:element>
<xsd:element name="main_email" type="xsd:string">
<xsd:annotation>
<xsd:documentation>Email address of the primary contact for this property</xsd:documentation>
</xsd:annotation>
</xsd:element>
<xsd:element name="cc_email" type="xsd:string" minOccurs="0">
<xsd:annotation>
<xsd:documentation>Secondary email address</xsd:documentation>
</xsd:annotation>
</xsd:element>
<xsd:element name="external_id" type="xsd:string">
<xsd:annotation>
<xsd:documentation>Primary key / unique ID that is used to identify this property on the client's side</xsd:documentation>
</xsd:annotation>
</xsd:element>
<xsd:element name="agent_id" type="xsd:string">
<xsd:annotation>
<xsd:documentation>Unique identifier for vendor of this property, supplied by Daft.ie</xsd:documentation>
</xsd:annotation>
</xsd:element>
<xsd:element name="property_status">
<xsd:annotation>
<xsd:documentation>Current status of the property. Properties marked 'sold' will be removed from the website.</xsd:documentation>
</xsd:annotation>
<xsd:simpleType>
<xsd:restriction base="xsd:string">
<xsd:enumeration value="for-sale"/>
<xsd:enumeration value="sale-agreed"/>
<xsd:enumeration value="sold"/>
</xsd:restriction>
</xsd:simpleType>
</xsd:element>
<xsd:element name="photos" type="photosType" minOccurs="0">
<xsd:annotation>
<xsd:documentation>Images associated with the property</xsd:documentation>
</xsd:annotation>
</xsd:element>
<xsd:element name="features" type="featuresType" minOccurs="0">
<xsd:annotation>
<xsd:documentation>Features associated with the property</xsd:documentation>
</xsd:annotation>
</xsd:element>
<xsd:element name="pdfs" type="pdfsType" minOccurs="0">
<xsd:annotation>
<xsd:documentation>Brochures associated with the property</xsd:documentation>
</xsd:annotation>
</xsd:element>
</xsd:sequence>
</xsd:complexType>
<xsd:complexType name="overseasRentalAdType">
<xsd:sequence>
<xsd:element name="country" type="xsd:string">
<xsd:annotation>
<xsd:documentation>Country of property</xsd:documentation>
</xsd:annotation>
</xsd:element>
<xsd:element name="region" type="xsd:string">
<xsd:annotation>
<xsd:documentation>Administrative level of country immediately below country level</xsd:documentation>
</xsd:annotation>
</xsd:element>
<xsd:element name="area" type="xsd:string">
<xsd:annotation>
<xsd:documentation>Administrative level beneath 'region'</xsd:documentation>
</xsd:annotation>
</xsd:element>
<xsd:element name="address" type="xsd:string">
<xsd:annotation>
<xsd:documentation>Address of property beneath area level</xsd:documentation>
</xsd:annotation>
</xsd:element>
<xsd:element name="property_type" type="propertyType">
<xsd:annotation>
<xsd:documentation>Type of property.</xsd:documentation>
</xsd:annotation>
</xsd:element>
<xsd:element name="house_type" type="houseType">
<xsd:annotation>
<xsd:documentation>If property_type is 'house', there should be a complementary attribute to declare, from the following option set</xsd:documentation>
</xsd:annotation>
</xsd:element>
<xsd:element name="commercial_type" type="commercialType">
<xsd:annotation>
<xsd:documentation>If property_type is 'commercial', there should be a complementary attribute to declare, form the following option set</xsd:documentation>
</xsd:annotation>
</xsd:element>
<xsd:element name="description" type="xsd:string">
<xsd:annotation>
<xsd:documentation>Detailed property description</xsd:documentation>
</xsd:annotation>
</xsd:element>
<xsd:element name="rent" type="positiveInteger">
<xsd:annotation>
<xsd:documentation>Rent expected on the property in euros</xsd:documentation>
</xsd:annotation>
</xsd:element>
<xsd:element name="rent_collection_period">
<xsd:annotation>
<xsd:documentation>Rent collection frequency</xsd:documentation>
</xsd:annotation>
<xsd:simpleType>
<xsd:restriction base="xsd:string">
<xsd:enumeration value="weekly"/>
<xsd:enumeration value="monthly"/>
</xsd:restriction>
</xsd:simpleType>
</xsd:element>
<xsd:element name="bathroom_number" type="positiveInteger">
<xsd:annotation>
<xsd:documentation>Number of bathrooms in the property</xsd:documentation>
</xsd:annotation>
</xsd:element>
<xsd:element name="bedroom_number" type="positiveInteger">
<xsd:annotation>
<xsd:documentation>Number of bedrooms in the property</xsd:documentation>
</xsd:annotation>
</xsd:element>
<xsd:element name="furnished">
<xsd:annotation>
<xsd:documentation>Indicates if the property is available furnished</xsd:documentation>
</xsd:annotation>
<xsd:simpleType>
<xsd:restriction base="xsd:string">
<xsd:enumeration value="furnished"/>
<xsd:enumeration value="unfurnished"/>
<xsd:enumeration value="either"/>
</xsd:restriction>
</xsd:simpleType>
</xsd:element>
<xsd:element name="cable_television" type="bool">
<xsd:annotation>
<xsd:documentation>Availability of cable television</xsd:documentation>
</xsd:annotation>
</xsd:element>
<xsd:element name="washing_machine" type="bool">
<xsd:annotation>
<xsd:documentation>Availability of washing machine</xsd:documentation>
</xsd:annotation>
</xsd:element>
<xsd:element name="dryer" type="bool">
<xsd:annotation>
<xsd:documentation>Availability of tumble dryer</xsd:documentation>
</xsd:annotation>
</xsd:element>
<xsd:element name="dishwasher" type="bool">
<xsd:annotation>
<xsd:documentation>Availability of dishwasher</xsd:documentation>
</xsd:annotation>
</xsd:element>
<xsd:element name="microwave" type="bool">
<xsd:annotation>
<xsd:documentation>Availability of microwave</xsd:documentation>
</xsd:annotation>
</xsd:element>
<xsd:element name="single_beds" type="positiveInteger" minOccurs="0">
<xsd:annotation>
<xsd:documentation>Number of single bedrooms in the property</xsd:documentation>
</xsd:annotation>
</xsd:element>
<xsd:element name="double_beds" type="positiveInteger" minOccurs="0">
<xsd:annotation>
<xsd:documentation>Number of double bedrooms in the property</xsd:documentation>
</xsd:annotation>
</xsd:element>
<xsd:element name="twin_beds" type="positiveInteger" minOccurs="0">
<xsd:annotation>
<xsd:documentation>Number of twin bedrooms in the property</xsd:documentation>
</xsd:annotation>
</xsd:element>
<xsd:element name="number_people" type="positiveInteger" minOccurs="0">
<xsd:annotation>
<xsd:documentation>Number of people that this property sleeps</xsd:documentation>
</xsd:annotation>
</xsd:element>
<xsd:element name="available_from" type="xsd:date" minOccurs="0">
<xsd:annotation>
<xsd:documentation>Date from which the property is available</xsd:documentation>
</xsd:annotation>
</xsd:element>
<xsd:element name="lease" type="positiveInteger" minOccurs="0">
<xsd:annotation>
<xsd:documentation>Length of lease in months</xsd:documentation>
</xsd:annotation>
</xsd:element>
<xsd:element name="phone1" type="xsd:string">
<xsd:annotation>
<xsd:documentation>Primary contact phone number of the landlord or the representing agent</xsd:documentation>
</xsd:annotation>
</xsd:element>
<xsd:element name="phone2" type="xsd:string" minOccurs="0">
<xsd:annotation>
<xsd:documentation>Secondary contact phone number of the landlord or the representing agent</xsd:documentation>
</xsd:annotation>
</xsd:element>
<xsd:element name="contact_name" type="xsd:string">
<xsd:annotation>
<xsd:documentation>Name of the contact person</xsd:documentation>
</xsd:annotation>
</xsd:element>
<xsd:element name="phone_info" type="xsd:string" minOccurs="0">
<xsd:annotation>
<xsd:documentation>State the restraints, if any, on contacting the contact person by phone</xsd:documentation>
</xsd:annotation>
</xsd:element>
<xsd:element name="main_email" type="xsd:string">
<xsd:annotation>
<xsd:documentation>Email address of the primary contact for this property</xsd:documentation>
</xsd:annotation>
</xsd:element>
<xsd:element name="cc_email" type="xsd:string" minOccurs="0">
<xsd:annotation>
<xsd:documentation>Secondary email address</xsd:documentation>
</xsd:annotation>
</xsd:element>
<xsd:element name="external_id" type="xsd:string">
<xsd:annotation>
<xsd:documentation>Primary key / unique ID that is used to identify this property on the client's side</xsd:documentation>
</xsd:annotation>
</xsd:element>
<xsd:element name="agent_id" type="xsd:string">
<xsd:annotation>
<xsd:documentation>Unique identifier for vendor of this property, supplied by Daft.ie</xsd:documentation>
</xsd:annotation>
</xsd:element>
<xsd:element name="photos" type="photosType" minOccurs="0">
<xsd:annotation>
<xsd:documentation>Images associated with the property</xsd:documentation>
</xsd:annotation>
</xsd:element>
<xsd:element name="features" type="featuresType" minOccurs="0">
<xsd:annotation>
<xsd:documentation>Features associated with the property</xsd:documentation>
</xsd:annotation>
</xsd:element>
</xsd:sequence>
</xsd:complexType>
<xsd:complexType name="featuresType">
<xsd:sequence>
<xsd:element name="feature" type="xsd:string" minOccurs="0" maxOccurs="10"/>
</xsd:sequence>
</xsd:complexType>
<xsd:complexType name="pdfsType">
<xsd:sequence>
<xsd:element name="pdf" type="xsd:anyURI" minOccurs="0" maxOccurs="3"/>
</xsd:sequence>
</xsd:complexType>
<xsd:complexType name="photosType">
<xsd:sequence>
<xsd:element name="photo" type="xsd:anyURI" minOccurs="0" maxOccurs="unbounded"/>
</xsd:sequence>
</xsd:complexType>
<!-- element 'feedindex' -->
<xsd:element name="feedindex">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="feed" minOccurs="0" maxOccurs="unbounded">
<xsd:complexType>
<xsd:all>
<xsd:element name="loc" type="xsd:anyURI" />
<xsd:element name="lastmod" type="xsd:dateTime" minOccurs="0" />
</xsd:all>
</xsd:complexType>
</xsd:element>
</xsd:sequence>
</xsd:complexType>
</xsd:element>
</xsd:schema>