<?xml version="1.0" encoding="UTF-8"?>
<!-- edited with XMLSpy v2008 (http://www.altova.com) by Nagravision SA (Nagravision SA) -->
<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns="nis.cim.sp.ml.nagra.com" targetNamespace="nis.cim.sp.ml.nagra.com" elementFormDefault="qualified">
  <xs:complexType name="BaseResourceType">
    <xs:annotation>
      <xs:documentation>This element defines common attributes of all root elements</xs:documentation>
    </xs:annotation>
    <xs:attribute name="providerId" type="xs:string" use="required">
      <xs:annotation>
        <xs:documentation>id of the content provider</xs:documentation>
      </xs:annotation>
    </xs:attribute>
    <xs:attribute name="providerResourceId" type="xs:string" use="required">
      <xs:annotation>
        <xs:documentation>id of the resource for this specific content provider</xs:documentation>
      </xs:annotation>
    </xs:attribute>
  </xs:complexType>
  <xs:complexType name="BaseResourceTypeWithMetadata">
    <xs:annotation>
      <xs:documentation>This element defines common attributes of all root elements</xs:documentation>
    </xs:annotation>
    <xs:complexContent>
      <xs:extension base="BaseResourceType">
        <xs:sequence>
          <xs:element name="metadataSet" type="MetadataSetType" minOccurs="0" maxOccurs="unbounded">
            <xs:annotation>
              <xs:documentation>This element defines a specific set of metadata for a specific locale.
Only one MetadataSet per locale is allowed.</xs:documentation>
            </xs:annotation>
          </xs:element>
        </xs:sequence>
        <xs:attribute name="name" type="xs:string" use="required">
          <xs:annotation>
            <xs:documentation>Working name of the resource (used usually to identify a resource in the operator UI)</xs:documentation>
          </xs:annotation>
        </xs:attribute>
      </xs:extension>
    </xs:complexContent>
  </xs:complexType>
  <xs:complexType name="MetadataType">
    <xs:annotation>
      <xs:documentation>Metadata value</xs:documentation>
    </xs:annotation>
    <xs:simpleContent>
      <xs:extension base="xs:string">
        <xs:attribute name="key" type="xs:string" use="required">
          <xs:annotation>
            <xs:documentation>Metadata key.
it must be unique for a specific resource and for a specific locale.</xs:documentation>
          </xs:annotation>
        </xs:attribute>
      </xs:extension>
    </xs:simpleContent>
  </xs:complexType>
  <xs:complexType name="MetadataSetType">
    <xs:sequence>
      <xs:element name="metadata" type="MetadataType" minOccurs="0" maxOccurs="unbounded">
        <xs:annotation>
          <xs:documentation>Metadata editorial or not of the metadata owner. The different metadata allowed and their definition must be defined outside of the scheme</xs:documentation>
        </xs:annotation>
      </xs:element>
    </xs:sequence>
    <xs:attribute name="locale" type="xs:string" use="required">
      <xs:annotation>
        <xs:documentation>Language-country code in which the metadata set is written.
It must be conformed to ISO-639 and ISO 3166-1.
If the MetadataSet is not localised, the locale must be set to "none".</xs:documentation>
      </xs:annotation>
    </xs:attribute>
  </xs:complexType>
  <xs:complexType name="MetadataSetNoLocaleType">
    <xs:annotation>
      <xs:documentation>The Metadata Set Type which defines a specific set of metadata for the locale "none"</xs:documentation>
    </xs:annotation>
    <xs:complexContent>
      <xs:restriction base="MetadataSetType">
        <xs:sequence>
          <xs:element name="metadata" type="MetadataType" minOccurs="0" maxOccurs="unbounded">
            <xs:annotation>
              <xs:documentation>A metadata.</xs:documentation>
            </xs:annotation>
          </xs:element>
        </xs:sequence>
        <xs:attribute name="locale" type="xs:string" use="required" fixed="none">
          <xs:annotation>
            <xs:documentation>locale will be set to "none" as it is not localised</xs:documentation>
          </xs:annotation>
        </xs:attribute>
      </xs:restriction>
    </xs:complexContent>
  </xs:complexType>
  <xs:complexType name="CdnTokenType">
   <xs:annotation>
      <xs:documentation>introduction of new fields for CDN in security Info for
      Technical Channel and Technical Content</xs:documentation>
    </xs:annotation>
    <xs:sequence>
     <xs:element name="cdnType" type="xs:string" minOccurs="0">
              <xs:annotation>
                <xs:documentation>cdnType</xs:documentation>
              </xs:annotation>
    </xs:element>
    <xs:element name="cdnId" type="xs:string" minOccurs="0">
              <xs:annotation>
                <xs:documentation>cdnId</xs:documentation>
              </xs:annotation>
    </xs:element>
    </xs:sequence>
  </xs:complexType>
  <xs:complexType name="AliasesSet">
      <xs:sequence>
          <xs:element name="alias" type="xs:string" minOccurs="0" maxOccurs="unbounded">
              <xs:annotation>
                  <xs:documentation>Define the attributes of aliases for editorial channel.</xs:documentation>
              </xs:annotation>
          </xs:element>
      </xs:sequence>
  </xs:complexType>
  <xs:complexType name="PeriodType">
    <xs:annotation>
      <xs:documentation>Defines a period of time with a mandatory start date and a mandatory end date.</xs:documentation>
    </xs:annotation>
    <xs:attribute name="start" type="gmtdatetime">
      <xs:annotation>
        <xs:documentation>Start date of the parent resource. 
A ISO 8601 compatible gmt datetime up to the second  : yyyy-mm-ddThh:mm:ssZ.
If not available, any query condition against start will be true</xs:documentation>
      </xs:annotation>
    </xs:attribute>
    <xs:attribute name="end" type="gmtdatetime">
      <xs:annotation>
        <xs:documentation>End date of the parent resource. 
A ISO 8601 compatible gmt datetime up to the second: yyyy-mm-ddThh:mm:ssZ.
If not available, any query condition against end will be true.</xs:documentation>
      </xs:annotation>
    </xs:attribute>
  </xs:complexType>

  <xs:complexType name="PeriodWithOptionalStartEndType">
    <xs:annotation>
      <xs:documentation>Defines a period of time with an optional start date and an optional end date.</xs:documentation>
    </xs:annotation>
    <xs:attribute name="start" type="gmtdatetime">
      <xs:annotation>
        <xs:documentation>Start date of the parent resource. 
A ISO 8601 compatible gmt datetime up to the second  : yyyy-mm-ddThh:mm:ssZ.
If not available, any query condition against start will be true</xs:documentation>
      </xs:annotation>
    </xs:attribute>
    <xs:attribute name="end" type="gmtdatetime">
      <xs:annotation>
        <xs:documentation>End date of the parent resource. 
A ISO 8601 compatible gmt datetime up to the second: yyyy-mm-ddThh:mm:ssZ.
If not available, any query condition against end will be true.</xs:documentation>
      </xs:annotation>
    </xs:attribute>
  </xs:complexType>
  <xs:simpleType name="gmtdatetime">
    <xs:restriction base="xs:string">
      <xs:pattern value="[0-9][0-9][0-9][0-9]-[0-1][0-9]-[0-3][0-9]T[0-2][0-9]:[0-6][0-9]:[0-6][0-9]Z"/>
    </xs:restriction>
  </xs:simpleType>
</xs:schema>
