-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathpodcast.xsd
511 lines (461 loc) · 15.4 KB
/
podcast.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
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
<?xml version="1.0" encoding="UTF-8"?>
<xsd:schema
xmlns:xsd="http://www.w3.org/2001/XMLSchema"
xmlns="https://podcast-ext.org/podcast-xsd"
targetNamespace="https://podcast-ext.org/podcast-xsd"
elementFormDefault="qualified" >
<xsd:annotation>
<xsd:documentation>
XML Schema for the Podcasts extension.
Help Center documentation for the Podcasts extension:
https://podcast-ext.org/help
GPL Licence applies
</xsd:documentation>
</xsd:annotation>
<!-- Custom type definition -->
<xsd:simpleType name="RestrictYesNo">
<xsd:restriction base="xsd:string">
<xsd:enumeration value="yes" />
<xsd:enumeration value="no" />
</xsd:restriction>
</xsd:simpleType>
<xsd:simpleType name="Platform">
<xsd:restriction base="xsd:string">
<xsd:minLength value="2"/>
<xsd:maxLength value="255"/>
</xsd:restriction>
</xsd:simpleType>
<xsd:simpleType name="Name">
<xsd:restriction base="xsd:string">
<xsd:minLength value="2"/>
<xsd:maxLength value="255"/>
</xsd:restriction>
</xsd:simpleType>
<xsd:simpleType name="LinkHref">
<xsd:restriction base="xsd:anyURI">
<xsd:minLength value="12"/>
<xsd:maxLength value="2048"/>
</xsd:restriction>
</xsd:simpleType>
<xsd:simpleType name="ISBN">
<xsd:restriction base="xsd:string">
<xsd:pattern value="\d{1}-\d{5}-\d{3}-\d{1}|\d{1}-\d{3}-\d{5}-\d{1}|\d{1}-\d{2}-\d{6}-\d{1}"/>
</xsd:restriction>
</xsd:simpleType>
<xsd:complexType name="Person">
<xsd:annotation>
<xsd:documentation>
This tag give some information about person in a podcast
</xsd:documentation>
</xsd:annotation>
<xsd:choice minOccurs="0" maxOccurs="unbounded">
<xsd:element name="link">
<xsd:annotation>
<xsd:documentation>
Used to add any link you want related to this people podcast.
</xsd:documentation>
</xsd:annotation>
<xsd:complexType>
<xsd:simpleContent>
<xsd:extension base="LinkHref">
<xsd:attribute name="href" type="LinkHref" use="required"/>
</xsd:extension>
</xsd:simpleContent>
</xsd:complexType>
</xsd:element>
<xsd:element name="social">
<xsd:annotation>
<xsd:documentation>
Here you can define some social network of this person
</xsd:documentation>
</xsd:annotation>
<xsd:complexType>
<xsd:attribute name="platform" type="Platform" use="required" />
<xsd:attribute name="handle" type="Name" use="optional" />
<xsd:attribute name="href" type="LinkHref" use="required" />
</xsd:complexType>
</xsd:element>
</xsd:choice>
<xsd:attribute name="firstname" type="Name" />
<xsd:attribute name="lastname" type="Name" />
<xsd:attribute name="nickname" type="Name" />
<xsd:attribute name="role" type="xsd:string" />
</xsd:complexType>
<!-- Elements definition -->
<xsd:element name="platform">
<xsd:annotation>
<xsd:documentation>
A podcast platform where the podcast is available.
The platform attribute is the platform code defined and communicated by itself.
The href attribute is the link to the podcast on specified platform.
An optional name attribute is available if the platform code is different from its name.
</xsd:documentation>
</xsd:annotation>
<xsd:complexType>
<xsd:attribute name="platform" type="Platform" use="required" />
<xsd:attribute name="name" type="Name" />
<xsd:attribute name="href" use="required" type="LinkHref"/>
</xsd:complexType>
</xsd:element>
<xsd:element name="email">
<xsd:annotation>
<xsd:documentation>
The email address of the podcast owner. This email will be used to
verify the ownership of the podcast during registration. The email is
only specified in the <channel> tag.
</xsd:documentation>
</xsd:annotation>
<xsd:simpleType>
<xsd:restriction base="xsd:string">
<xsd:maxLength value="255"/>
</xsd:restriction>
</xsd:simpleType>
</xsd:element>
<xsd:element name="image">
<xsd:annotation>
<xsd:documentation>
A URL that points to the the artwork of your podcast or episode. The
image can be specified in the <channel> or <item> tags.
</xsd:documentation>
</xsd:annotation>
<xsd:complexType>
<xsd:attribute name="href" use="required">
<xsd:simpleType>
<xsd:restriction base="xsd:anyURI">
<xsd:minLength value="12"/>
<xsd:maxLength value="2048"/>
</xsd:restriction>
</xsd:simpleType>
</xsd:attribute>
</xsd:complexType>
</xsd:element>
<xsd:element name="description">
<xsd:annotation>
<xsd:documentation>
A description of the podcast or episode. The description can be specified
in the <channel> or <item> tags and must be plain-text (no
markup allowed).
</xsd:documentation>
</xsd:annotation>
<xsd:simpleType>
<xsd:restriction base="xsd:string">
<xsd:maxLength value="4000"/>
</xsd:restriction>
</xsd:simpleType>
</xsd:element>
<xsd:element name="explicit">
<xsd:annotation>
<xsd:documentation>
Indicates whether the podcast or a specific episode contains explicit
material. If not specified, it is considered not explicit. The explicit
symbol will appear next to the podcast when the tag is placed in the
<channel> and next to the episode when placed in the <item>.
A 'clean' value can only be used in the <item> tag, and it means
this episode is not explicit, but there's also an explicit version of
of the same episode.
</xsd:documentation>
</xsd:annotation>
<xsd:simpleType>
<xsd:restriction base="xsd:string">
<xsd:enumeration value="yes" />
<xsd:enumeration value="no" />
<xsd:enumeration value="clean" />
</xsd:restriction>
</xsd:simpleType>
</xsd:element>
<xsd:element name="block">
<xsd:annotation>
<xsd:documentation>
If this tag is set to 'yes' in the <channel> tag, the podcast will
will not appear in Google Play Music. If this tag is set to 'yes' in the
<item> tag, that episode will not appear in Google Play Music. If
it's not set, it will be treated as 'no'.
</xsd:documentation>
</xsd:annotation>
<xsd:complexType>
<xsd:simpleContent>
<xsd:extension base="RestrictYesNo">
<xsd:attribute name="platform" type="Platform" use="required"/>
</xsd:extension>
</xsd:simpleContent>
</xsd:complexType>
</xsd:element>
<xsd:element name="newFeedUrl" type="LinkHref">
<xsd:annotation>
<xsd:documentation>
Allows the podcast owner to change the URL where the RSS podcast feed is
located. After adding the tag, you should maintain the old feed for 48
hours before retiring it. newFeedUrl is only specified in the
<channel> tag.
</xsd:documentation>
</xsd:annotation>
</xsd:element>
<xsd:element name="category">
<xsd:annotation>
<xsd:documentation>
Specify the category that your podcast relates to. If more than one
category is specified, only the first one will be used. Categories can
only be specified in the <channel> tag. The 'text' must match one
of the pre-defined categories specified in the help center
article: https://support.google.com/googleplay/podcasts/answer/6260341#spt
</xsd:documentation>
</xsd:annotation>
<xsd:complexType>
<xsd:attribute name="text" type="xsd:string" use="required" />
</xsd:complexType>
</xsd:element>
<xsd:element name="social">
<xsd:annotation>
<xsd:documentation>
Here you can define some social network of your podcast.
</xsd:documentation>
</xsd:annotation>
<xsd:complexType>
<xsd:attribute name="platform" type="Platform" use="required" />
<xsd:attribute name="handle" type="Name" use="optional" />
<xsd:attribute name="href" type="LinkHref" use="required" />
</xsd:complexType>
</xsd:element>
<xsd:element name="donate">
<xsd:annotation>
<xsd:documentation>
This tag is used to specify a link for your donation page (like Patreon).
</xsd:documentation>
</xsd:annotation>
<xsd:complexType>
<xsd:attribute name="platform" type="Platform" use="required" />
<xsd:attribute name="handle" type="Name" use="optional" />
<xsd:attribute name="href" type="LinkHref" use="required" />
</xsd:complexType>
</xsd:element>
<xsd:element name="shop">
<xsd:annotation>
<xsd:documentation>
Used to specify a link to your podcast's shop.
</xsd:documentation>
</xsd:annotation>
<xsd:complexType>
<xsd:attribute name="platform" type="Platform" use="required" />
<xsd:attribute name="handle" type="Name" use="optional" />
<xsd:attribute name="href" type="LinkHref" use="required" />
</xsd:complexType>
</xsd:element>
<xsd:element name="link">
<xsd:annotation>
<xsd:documentation>
Used to add any link you want related to your podcast.
</xsd:documentation>
</xsd:annotation>
<xsd:complexType>
<xsd:simpleContent>
<xsd:extension base="LinkHref">
<xsd:attribute name="href" type="LinkHref" use="required"/>
</xsd:extension>
</xsd:simpleContent>
</xsd:complexType>
</xsd:element>
<xsd:element name="person" type="Person" />
<xsd:element name="team">
<xsd:annotation>
<xsd:documentation>
Used to define some information about the team of the podcast.
</xsd:documentation>
</xsd:annotation>
<xsd:complexType>
<xsd:choice minOccurs="1" maxOccurs="unbounded">
<xsd:element name="person" type="Person" />
</xsd:choice>
</xsd:complexType>
</xsd:element>
<xsd:element name="guests">
<xsd:annotation>
<xsd:documentation>
Used to give some extra information about guest in the episode (used only in item tag).
</xsd:documentation>
</xsd:annotation>
<xsd:complexType>
<xsd:choice minOccurs="1" maxOccurs="unbounded">
<xsd:element name="person" type="Person" />
</xsd:choice>
</xsd:complexType>
</xsd:element>
<xsd:element name="book">
<xsd:annotation>
<xsd:documentation>
Used to give some information about books in podcast.
</xsd:documentation>
</xsd:annotation>
<xsd:complexType>
<xsd:attribute name="title" use="required">
<xsd:simpleType>
<xsd:restriction base="xsd:string">
<xsd:maxLength value="512"/>
</xsd:restriction>
</xsd:simpleType>
</xsd:attribute>
<xsd:attribute name="author" type="Name" use="required" />
<xsd:attribute name="href" type="LinkHref" />
<xsd:attribute name="isbn" type="ISBN" />
</xsd:complexType>
</xsd:element>
<xsd:element name="game">
<xsd:annotation>
<xsd:documentation>
Used to give some information about games in podcast.
</xsd:documentation>
</xsd:annotation>
<xsd:complexType>
<xsd:attribute name="title" use="required">
<xsd:simpleType>
<xsd:restriction base="xsd:string">
<xsd:maxLength value="512"/>
</xsd:restriction>
</xsd:simpleType>
</xsd:attribute>
<xsd:attribute name="developer" type="Name" />
<xsd:attribute name="href" type="LinkHref" />
<xsd:attribute name="publisher" type="Name" />
<xsd:attribute name="platforms" type="xsd:string" />
</xsd:complexType>
</xsd:element>
<xsd:element name="tv_show">
<xsd:annotation>
<xsd:documentation>
Used to give some information about TV Show in podcast.
</xsd:documentation>
</xsd:annotation>
<xsd:complexType>
<xsd:attribute name="title" use="required">
<xsd:simpleType>
<xsd:restriction base="xsd:string">
<xsd:maxLength value="512"/>
</xsd:restriction>
</xsd:simpleType>
</xsd:attribute>
</xsd:complexType>
</xsd:element>
<xsd:element name="movie">
<xsd:annotation>
<xsd:documentation>
Used to give some information about movies in podcast.
</xsd:documentation>
</xsd:annotation>
<xsd:complexType>
<xsd:attribute name="title" use="required">
<xsd:simpleType>
<xsd:restriction base="xsd:string">
<xsd:maxLength value="512"/>
</xsd:restriction>
</xsd:simpleType>
</xsd:attribute>
<xsd:attribute name="director" type="Name" />
</xsd:complexType>
</xsd:element>
<xsd:element name="video">
<xsd:annotation>
<xsd:documentation>
Used to give some information about video in podcast.
</xsd:documentation>
</xsd:annotation>
<xsd:complexType>
<xsd:attribute name="title" use="required">
<xsd:simpleType>
<xsd:restriction base="xsd:string">
<xsd:maxLength value="512"/>
</xsd:restriction>
</xsd:simpleType>
</xsd:attribute>
<xsd:attribute name="href" type="LinkHref" use="required" />
</xsd:complexType>
</xsd:element>
<xsd:element name="music">
<xsd:annotation>
<xsd:documentation>
Used to give some information about music in podcast.
</xsd:documentation>
</xsd:annotation>
<xsd:complexType>
<xsd:attribute name="title" use="required">
<xsd:simpleType>
<xsd:restriction base="xsd:string">
<xsd:maxLength value="512"/>
</xsd:restriction>
</xsd:simpleType>
</xsd:attribute>
<xsd:attribute name="href" type="LinkHref" use="required" />
<xsd:attribute name="artist" type="Name" />
</xsd:complexType>
</xsd:element>
<xsd:element name="art">
<xsd:annotation>
<xsd:documentation>
Used to give some information about art in podcast.
</xsd:documentation>
</xsd:annotation>
<xsd:complexType>
<xsd:attribute name="title" use="required">
<xsd:simpleType>
<xsd:restriction base="xsd:string">
<xsd:maxLength value="512"/>
</xsd:restriction>
</xsd:simpleType>
</xsd:attribute>
<xsd:attribute name="href" type="LinkHref" use="required" />
<xsd:attribute name="artist" type="Name" />
</xsd:complexType>
</xsd:element>
<xsd:element name="object">
<xsd:annotation>
<xsd:documentation>
Used to give some information about object in podcast.
</xsd:documentation>
</xsd:annotation>
<xsd:complexType>
<xsd:attribute name="name" use="required">
<xsd:simpleType>
<xsd:restriction base="xsd:string">
<xsd:maxLength value="512"/>
</xsd:restriction>
</xsd:simpleType>
</xsd:attribute>
<xsd:attribute name="href" type="LinkHref" use="required" />
<xsd:attribute name="brand" type="Name" />
<xsd:attribute name="price" type="xsd:positiveInteger" />
<xsd:attribute name="currency" type="xsd:string" />
</xsd:complexType>
</xsd:element>
<xsd:element name="website">
<xsd:annotation>
<xsd:documentation>
Used to give some information about a website in podcast.
</xsd:documentation>
</xsd:annotation>
<xsd:complexType>
<xsd:attribute name="name" use="required">
<xsd:simpleType>
<xsd:restriction base="xsd:string">
<xsd:maxLength value="512"/>
</xsd:restriction>
</xsd:simpleType>
</xsd:attribute>
<xsd:attribute name="href" type="LinkHref" use="required" />
</xsd:complexType>
</xsd:element>
<xsd:element name="live">
<xsd:annotation>
<xsd:documentation>
Used to give some information about where you can find the live of the podcsast.
</xsd:documentation>
</xsd:annotation>
<xsd:complexType>
<xsd:attribute name="type" use="required">
<xsd:simpleType>
<xsd:restriction base="xsd:string">
<xsd:maxLength value="50"/>
</xsd:restriction>
</xsd:simpleType>
</xsd:attribute>
<xsd:attribute name="href" type="LinkHref" use="required" />
</xsd:complexType>
</xsd:element>
</xsd:schema>