Specifications
B-44
Cisco Internet Streamer CDS 2.0-2.3 Software Configuration Guide
OL-13493-04
Appendix B Creating Manifest Files
XML Schema
XML Schema
In the case of the Manifest file, an XML schema defines the custom markup language of the Manifest
file and the appearance of a given set of XML documents. The XML schema specifies which tags or
elements you can use in your documents, the attributes those tags can contain, and their arrangement.
Manifest XML Schema
An XSD is a library that provides an application programming interface (API) for manipulating the
components of an XML schema.
The following XML code is the Manifest XML schema (CdnManfest.xsd):
<?xml version="1.0"?>
<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema">
<xs:include schemaLocation="PlayServerTable.xsd"/>
<xs:element name="CdnManifest">
<xs:complexType>
<xs:sequence>
<xs:element ref="playServerTable" minOccurs="0" maxOccurs="1"/>
<xs:element ref="options" minOccurs="0" maxOccurs="1"/>
<xs:choice minOccurs="0" maxOccurs="unbounded">
<xs:element ref="proxyServer" maxOccurs="unbounded"/>
<xs:element ref="server" maxOccurs="unbounded"/>
<xs:element ref="item-group" maxOccurs="unbounded"/>
<xs:element ref="item" maxOccurs="unbounded"/>
<xs:element ref="crawler" maxOccurs="unbounded"/>
</xs:choice>
<xs:choice minOccurs="0" maxOccurs="unbounded">
<xs:element ref="item-group" maxOccurs="unbounded"/>
<xs:element ref="item" maxOccurs="unbounded"/>
<xs:element ref="crawler" maxOccurs="unbounded"/>
</xs:choice>
</xs:sequence>
</xs:complexType>
</xs:element>
<xs:element name="options">
<xs:complexType>
<xs:sequence>
<xs:element ref="schedule" minOccurs="0" maxOccurs="1"/>
</xs:sequence>
<xs:attribute name="timeZone" type="xs:string" use="optional"/>
<xs:attribute name="wmtRequireAuth" type="xs:boolean" use="optional"/>
<xs:attribute name="ignoreQueryString" type="xs:boolean" use="optional"/>
<xs:attribute name="ignoreOriginPort" type="xs:boolean" use="optional"/>
<xs:attribute name="enableCookies" type="xs:boolean" use="optional" />
<xs:attribute name="ttl" type="xs:int" use="optional"/>
<xs:attribute name="failRetryInterval" type="xs:unsignedInt" use="optional"/>
<xs:attribute name="prefetch" type="xs:string" use="optional"/>
<xs:attribute name="type" use="optional" >
<xs:simpleType>
<xs:restriction base="xs:string">
<xs:enumeration value="prepos"/>
<xs:enumeration value="wmt-live"/>
<xs:enumeration value="cache"/>
</xs:restriction>
</xs:simpleType>
</xs:attribute>
<xs:attribute name="manifest-id" type="xs:string" use="optional"/>