-
Notifications
You must be signed in to change notification settings - Fork 0
/
schedule.xsd
executable file
·51 lines (51 loc) · 2.66 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
<?xml version="1.0" encoding="UTF-8"?>
<!--Document developed by SVT and TV4 2009, 2010, 2011-->
<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:content="http://common.tv.se/content/v3_2" xmlns:event="http://common.tv.se/event/v3_2" xmlns:material="http://common.tv.se/material/v3_2" xmlns="http://common.tv.se/schedule/v3_2" targetNamespace="http://common.tv.se/schedule/v3_2" elementFormDefault="qualified" attributeFormDefault="unqualified" version="3.2">
<xs:import namespace="http://common.tv.se/content/v3_2" schemaLocation="content.xsd"/>
<xs:import namespace="http://common.tv.se/event/v3_2" schemaLocation="event.xsd"/>
<xs:import namespace="http://common.tv.se/material/v3_2" 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>