radiomanifest-spec/radio-manifest/radio-manifest.xsd

54 lines
1.9 KiB
XML
Raw Normal View History

2022-01-20 22:24:33 +01:00
<?xml version="1.0" encoding="UTF-8" ?>
<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema">
<xs:element name="radio-manifest">
<xs:complexType>
<xs:all>
<xs:element name="schedule" minOccurs="0">
<xs:complexType>
<xs:attribute name="src" type="srctype" use="required"/>
</xs:complexType>
</xs:element>
<xs:element name="shows" minOccurs="0">
<xs:complexType>
<xs:attribute name="src" type="srctype" use="required"/>
</xs:complexType>
</xs:element>
<xs:element name="streaming" minOccurs="0">
<xs:complexType>
<xs:sequence>
<xs:element name="source" maxOccurs="unbounded">
<xs:complexType>
<xs:attribute name="name" type="xs:string" use="required"/>
<xs:attribute name="src" type="srctype" use="required"/>
<xs:attribute name="priority" type="xs:byte" default="1" />
</xs:complexType>
</xs:element>
</xs:sequence>
</xs:complexType>
</xs:element>
<xs:element name="feed" minOccurs="0">
<xs:complexType>
<xs:attribute name="src" type="srctype" use="required" />
<xs:attribute name="type" type="xs:string" />
</xs:complexType>
</xs:element>
</xs:all>
</xs:complexType>
</xs:element>
<xs:simpleType name="srctype">
<xs:restriction base="xs:anyURI">
<xs:minLength value="1" />
</xs:restriction>
</xs:simpleType>
</xs:schema>