-
Notifications
You must be signed in to change notification settings - Fork 3
/
rss-2.0.xsd
428 lines (409 loc) · 13.6 KB
/
rss-2.0.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
<?xml version="1.0" encoding="UTF-8"?>
<xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema">
<xsd:element name="rss" type="rss" />
<xsd:complexType name="rss">
<xsd:sequence>
<xsd:element name="channel" type="channel" maxOccurs="1"
minOccurs="1" />
</xsd:sequence>
<xsd:attribute name="version" type="version" />
</xsd:complexType>
<xsd:simpleType name="version">
<xsd:restriction base="xsd:string">
<xsd:enumeration value="2.0" />
</xsd:restriction>
</xsd:simpleType>
<xsd:complexType name="channel">
<xsd:sequence>
<xsd:element name="title" type="xsd:string" maxOccurs="1" minOccurs="1">
<xsd:annotation>
<xsd:documentation>
The name of the channel. It's how people refer
to your service. If you have an HTML website
that contains the same information as your RSS
file, the title of your channel should be the
same as the title of your website.
</xsd:documentation>
</xsd:annotation>
</xsd:element>
<xsd:element name="link" type="xsd:string" maxOccurs="1" minOccurs="1">
<xsd:annotation>
<xsd:documentation>
The URL to the HTML website corresponding to the
channel.
</xsd:documentation>
</xsd:annotation>
</xsd:element>
<xsd:element name="description" type="xsd:string" maxOccurs="1"
minOccurs="1">
<xsd:annotation>
<xsd:documentation>
Phrase or sentence describing the channel.
</xsd:documentation>
</xsd:annotation>
</xsd:element>
<xsd:element name="language" type="xsd:string" maxOccurs="1"
minOccurs="0">
<xsd:annotation>
<xsd:documentation>
The language the channel is written in. This
allows aggregators to group all Italian language
sites, for example, on a single page. A list of
allowable values for this element, as provided
by Netscape, is here
[http://www.rssboard.org/rss-language-codes].
You may also use values defined by the W3C
[http://www.w3.org/TR/REC-html40/struct/dirlang.html#langcodes].
</xsd:documentation>
</xsd:annotation>
</xsd:element>
<xsd:element name="copyright" type="xsd:string" maxOccurs="1"
minOccurs="0">
<xsd:annotation>
<xsd:documentation>
Copyright notice for content in the channel.
</xsd:documentation>
</xsd:annotation>
</xsd:element>
<xsd:element name="managingEditor" type="xsd:string" maxOccurs="1"
minOccurs="0">
<xsd:annotation>
<xsd:documentation>
Email address for person responsible for
editorial content.
</xsd:documentation>
</xsd:annotation>
</xsd:element>
<xsd:element name="webMaster" type="xsd:string" maxOccurs="1"
minOccurs="0">
<xsd:annotation>
<xsd:documentation>
Email address for person responsible for
technical issues relating to channel.
</xsd:documentation>
</xsd:annotation>
</xsd:element>
<xsd:element name="pubDate" type="xsd:string" maxOccurs="1"
minOccurs="0">
<xsd:annotation>
<xsd:documentation>
The publication date for the content in the
channel. For example, the New York Times
publishes on a daily basis, the publication date
flips once every 24 hours. That's when the
pubDate of the channel changes. All date-times
in RSS conform to the Date and Time
Specification of RFC 822, with the exception
that the year may be expressed with two
characters or four characters (four preferred).
</xsd:documentation>
</xsd:annotation>
</xsd:element>
<xsd:element name="lastBuildDate" type="xsd:string" maxOccurs="1"
minOccurs="0">
<xsd:annotation>
<xsd:documentation>
The last time the content of the channel
changed.
</xsd:documentation>
</xsd:annotation>
</xsd:element>
<xsd:element name="category" type="category" maxOccurs="unbounded"
minOccurs="0">
<xsd:annotation>
<xsd:documentation>
Specify one or more categories that the channel
belongs to. Follows the same rules as the
<item>-level category element.
</xsd:documentation>
</xsd:annotation>
</xsd:element>
<xsd:element name="generator" type="xsd:string" maxOccurs="1"
minOccurs="0">
<xsd:annotation>
<xsd:documentation>
A string indicating the program used to generate
the channel.
</xsd:documentation>
</xsd:annotation>
</xsd:element>
<xsd:element name="docs" type="xsd:string" maxOccurs="1" minOccurs="0">
<xsd:annotation>
<xsd:documentation>
A URL that points to the documentation for the
format used in the RSS file. It's probably a
pointer to this page. It's for people who might
stumble across an RSS file on a Web server 25
years from now and wonder what it is.
</xsd:documentation>
</xsd:annotation>
</xsd:element>
<xsd:element name="cloud" type="cloud" maxOccurs="1"
minOccurs="0">
<xsd:annotation>
<xsd:documentation>
Allows processes to register with a cloud to be
notified of updates to the channel, implementing
a lightweight publish-subscribe protocol for RSS
feeds. More info here.
</xsd:documentation>
</xsd:annotation>
</xsd:element>
<xsd:element name="ttl" type="xsd:int" maxOccurs="1" minOccurs="0">
<xsd:annotation>
<xsd:documentation>
ttl stands for time to live. It's a number of
minutes that indicates how long a channel can be
cached before refreshing from the source.
</xsd:documentation>
</xsd:annotation>
</xsd:element>
<xsd:element name="image" type="image" maxOccurs="1"
minOccurs="0">
<xsd:annotation>
<xsd:documentation>
Specifies a GIF, JPEG or PNG image that can be
displayed with the channel.
</xsd:documentation>
</xsd:annotation>
</xsd:element>
<xsd:element name="rating" type="xsd:string" maxOccurs="1" minOccurs="0">
<xsd:annotation>
<xsd:documentation>
The PICS [http://www.w3.org/PICS/] rating for
the channel.
</xsd:documentation>
</xsd:annotation>
</xsd:element>
<xsd:element name="textInput" type="textInput" maxOccurs="1"
minOccurs="0">
<xsd:annotation>
<xsd:documentation>
Specifies a text input box that can be displayed
with the channel.
</xsd:documentation>
</xsd:annotation>
</xsd:element>
<xsd:element name="skipHours" type="skipHours" maxOccurs="1"
minOccurs="0">
<xsd:annotation>
<xsd:documentation>
A hint for aggregators telling them which hours
they can skip. This element contains up to 24
<hour> sub-elements whose value is a
number between 0 and 23, representing a time in
GMT, when aggregators, if they support the
feature, may not read the channel on hours
listed in the <skipHours> element. The
hour beginning at midnight is hour zero.
</xsd:documentation>
</xsd:annotation>
</xsd:element>
<xsd:element name="skipDays" type="skipDays" maxOccurs="1"
minOccurs="0">
<xsd:annotation>
<xsd:documentation>
A hint for aggregators telling them which days
they can skip. This element contains up to seven
<day>
sub-elements whose value is Monday, Tuesday,
Wednesday, Thursday, Friday, Saturday or
Sunday. Aggregators may not read the channel
during days listed in the
<skipDays>element.
</xsd:documentation>
</xsd:annotation>
</xsd:element>
<xsd:element name="item" type="item" maxOccurs="unbounded"
minOccurs="0" />
</xsd:sequence>
</xsd:complexType>
<xsd:complexType name="cloud">
<xsd:attribute name="domain" type="xsd:string" />
<xsd:attribute name="port">
<xsd:simpleType>
<xsd:restriction base="xsd:int">
<xsd:maxInclusive value="65536" />
<xsd:minInclusive value="0" />
</xsd:restriction>
</xsd:simpleType>
</xsd:attribute>
<xsd:attribute name="path" type="xsd:string" />
<xsd:attribute name="registerProcedure" type="xsd:string" />
<xsd:attribute name="protocol" type="xsd:string" />
</xsd:complexType>
<xsd:complexType name="image">
<xsd:sequence>
<xsd:element name="url" type="xsd:string" maxOccurs="1" minOccurs="1" />
<xsd:element name="title" type="xsd:string" maxOccurs="1" minOccurs="1" />
<xsd:element name="link" type="xsd:string" maxOccurs="1" minOccurs="1" />
<xsd:element name="width" default="88" maxOccurs="1" minOccurs="0">
<xsd:simpleType>
<xsd:restriction base="xsd:int">
<xsd:minExclusive value="0" />
<xsd:maxInclusive value="144" />
</xsd:restriction>
</xsd:simpleType>
</xsd:element>
<xsd:element name="height" default="31" maxOccurs="1" minOccurs="0">
<xsd:simpleType>
<xsd:restriction base="xsd:int">
<xsd:minExclusive value="0" />
<xsd:maxInclusive value="400" />
</xsd:restriction>
</xsd:simpleType>
</xsd:element>
<xsd:element name="description" type="xsd:string" maxOccurs="1"
minOccurs="0" />
</xsd:sequence>
</xsd:complexType>
<xsd:complexType name="textInput">
<xsd:sequence>
<xsd:element name="title" type="xsd:string" maxOccurs="1" minOccurs="1" />
<xsd:element name="description" type="xsd:string" maxOccurs="1"
minOccurs="1" />
<xsd:element name="name" type="xsd:string" maxOccurs="1" minOccurs="1" />
<xsd:element name="link" type="xsd:string" maxOccurs="1" minOccurs="1" />
</xsd:sequence>
</xsd:complexType>
<xsd:complexType name="skipHours">
<xsd:sequence>
<xsd:element name="hour" minOccurs="1" maxOccurs="24">
<xsd:simpleType>
<xsd:restriction base="xsd:int">
<xsd:maxInclusive value="23" />
<xsd:minInclusive value="0" />
</xsd:restriction>
</xsd:simpleType>
</xsd:element>
</xsd:sequence>
</xsd:complexType>
<xsd:complexType name="skipDays">
<xsd:sequence>
<xsd:element name="day" maxOccurs="7">
<xsd:simpleType>
<xsd:restriction base="xsd:string">
<xsd:enumeration value="Monday" />
<xsd:enumeration value="Tuesday" />
<xsd:enumeration value="Wednesday" />
<xsd:enumeration value="Thursday" />
<xsd:enumeration value="Friday" />
<xsd:enumeration value="Saturday" />
<xsd:enumeration value="Sunday" />
</xsd:restriction>
</xsd:simpleType>
</xsd:element>
</xsd:sequence>
</xsd:complexType>
<xsd:complexType name="item">
<xsd:sequence>
<xsd:element name="title" type="xsd:string" maxOccurs="1" minOccurs="0">
<xsd:annotation>
<xsd:documentation>
The title of the item.
</xsd:documentation>
</xsd:annotation>
</xsd:element>
<xsd:element name="link" type="xsd:string" maxOccurs="1" minOccurs="0">
<xsd:annotation>
<xsd:documentation>The URL of the item.</xsd:documentation>
</xsd:annotation>
</xsd:element>
<xsd:element name="description" type="xsd:string" maxOccurs="1"
minOccurs="0">
<xsd:annotation>
<xsd:documentation>The item synopsis.</xsd:documentation>
</xsd:annotation>
</xsd:element>
<xsd:element name="author" type="xsd:string" maxOccurs="1" minOccurs="0">
<xsd:annotation>
<xsd:documentation>
Email address of the author of the item.
</xsd:documentation>
</xsd:annotation>
</xsd:element>
<xsd:element name="category" type="category" maxOccurs="unbounded"
minOccurs="0">
<xsd:annotation>
<xsd:documentation>
Includes the item in one or more categories.
</xsd:documentation>
</xsd:annotation>
</xsd:element>
<xsd:element name="comments" type="xsd:string" maxOccurs="1"
minOccurs="0">
<xsd:annotation>
<xsd:documentation>
URL of a page for comments relating to the item.
</xsd:documentation>
</xsd:annotation>
</xsd:element>
<xsd:element name="enclosure" type="enclosure" maxOccurs="1"
minOccurs="0">
<xsd:annotation>
<xsd:documentation>
Describes a media object that is attached to the
item.
</xsd:documentation>
</xsd:annotation>
</xsd:element>
<xsd:element name="guid" type="guid" maxOccurs="1"
minOccurs="0">
<xsd:annotation>
<xsd:documentation>
A string that uniquely identifies the item.
</xsd:documentation>
</xsd:annotation>
</xsd:element>
<xsd:element name="pubDate" type="xsd:string" maxOccurs="1"
minOccurs="0">
<xsd:annotation>
<xsd:documentation>
Indicates when the item was published.
</xsd:documentation>
</xsd:annotation>
</xsd:element>
<xsd:element name="source" type="source" maxOccurs="1"
minOccurs="0">
<xsd:annotation>
<xsd:documentation>
The RSS channel that the item came from.
</xsd:documentation>
</xsd:annotation>
</xsd:element>
</xsd:sequence>
</xsd:complexType>
<xsd:complexType name="category">
<xsd:simpleContent>
<xsd:extension base="xsd:string">
<xsd:attribute name="domain" type="xsd:string" />
</xsd:extension>
</xsd:simpleContent>
</xsd:complexType>
<xsd:complexType name="enclosure">
<xsd:attribute name="url" type="xsd:string" use="required" />
<xsd:attribute name="length" use="required">
<xsd:simpleType>
<xsd:restriction base="xsd:int">
<xsd:minExclusive value="0" />
</xsd:restriction>
</xsd:simpleType>
</xsd:attribute>
<xsd:attribute name="type" type="xsd:string" use="required" />
</xsd:complexType>
<xsd:complexType name="guid">
<xsd:simpleContent>
<xsd:extension base="xsd:string">
<xsd:attribute name="isPermaLink" type="xsd:boolean" />
</xsd:extension>
</xsd:simpleContent>
</xsd:complexType>
<xsd:complexType name="source">
<xsd:simpleContent>
<xsd:extension base="xsd:string">
<xsd:attribute name="url" type="xsd:string"
use="required" />
</xsd:extension>
</xsd:simpleContent>
</xsd:complexType>
</xsd:schema>