-
Notifications
You must be signed in to change notification settings - Fork 2
/
schedule.xsd
75 lines (75 loc) · 3.19 KB
/
schedule.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
<?xml version="1.0" encoding="UTF-8"?>
<!-- Version 4.2.0, July 2016. Find the latest release on https://github.com/june-ab/public-schedule4 -->
<!-- Public Schedule is an open standard for interchanging TV metadata, broadcasts and rights. -->
<!-- Public Schedule is free to use for all. Originally developed by SVT, TV4 and TeliaSonera. -->
<!-- Now in development by broadcasters and distributors who are members of the Public Schedule group. -->
<!-- Want to participate? Contact [email protected] -->
<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema"
xmlns:content="http://common.tv.se/content/v4_2_0" xmlns:event="http://common.tv.se/event/v4_2_0"
xmlns:material="http://common.tv.se/material/v4_2_0" xmlns="http://common.tv.se/schedule/v4_2_0"
targetNamespace="http://common.tv.se/schedule/v4_2_0" elementFormDefault="qualified"
attributeFormDefault="unqualified" version="1.0">
<xs:import namespace="http://common.tv.se/content/v4_2_0"
schemaLocation="content.xsd" />
<xs:import namespace="http://common.tv.se/event/v4_2_0"
schemaLocation="event.xsd" />
<xs:import namespace="http://common.tv.se/material/v4_2_0"
schemaLocation="material.xsd" />
<xs:element name="schedule">
<xs:annotation>
<xs:documentation>root node of schedule, always complete
</xs:documentation>
</xs:annotation>
<xs:complexType>
<xs:sequence>
<xs:element name="from" type="xs:dateTime">
<xs:annotation>
<xs:documentation>Start dateTime from which the events in this
document occur</xs:documentation>
</xs:annotation>
</xs:element>
<xs:element name="to" type="xs:dateTime">
<xs:annotation>
<xs:documentation>End dateTime from which the events in this
document occur</xs:documentation>
</xs:annotation>
</xs:element>
<xs:element name="providerId" type="xs:string">
<xs:annotation>
<xs:documentation>id for the provider, could be for example
'se.svt' or 'se.tv4'</xs:documentation>
</xs:annotation>
</xs:element>
<xs:element name="contentList" type="content:contentListType"
minOccurs="0">
<xs:annotation>
<xs:documentation>content list for the document, could be 0
entries which would indicate no events for this period
</xs:documentation>
</xs:annotation>
</xs:element>
<xs:element name="materialList" type="material:materialListType"
minOccurs="0">
<xs:annotation>
<xs:documentation>material list for the document, could be 0
entries which would indicate no events for this period
</xs:documentation>
</xs:annotation>
</xs:element>
<xs:element name="eventList" type="event:eventListType"
minOccurs="0">
<xs:annotation>
<xs:documentation>event list for the document, could be 0 entries
which would indicate no events for this period</xs:documentation>
</xs:annotation>
</xs:element>
</xs:sequence>
<xs:attribute name="timestamp" type="xs:dateTime" use="required">
<xs:annotation>
<xs:documentation>Timestamp when document is created
</xs:documentation>
</xs:annotation>
</xs:attribute>
</xs:complexType>
</xs:element>
</xs:schema>