<?xml version="1.0" encoding="UTF-8"?>
<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:ns="urn:dvb:metadata:nativeip:2023" xmlns:mpeg7="urn:tva:mpeg7:2008" targetNamespace="urn:dvb:metadata:nativeip:2023" elementFormDefault="qualified">
	<xs:import namespace="urn:tva:mpeg7:2008" schemaLocation="tva_mpeg7.xsd"/>
	<xs:element name="ServiceInformationFile" type="ns:ServiceInformationFileType"/>
	
	<xs:complexType name="ServiceInformationFileType">
		<xs:sequence>
			<xs:element name="VersionUpdate" type="xs:dateTime"/>
			<xs:element name="NIPNetworkProviderName" type="xs:string" />
			<xs:element name="BroadcastMediaStream" type="ns:BroadcastMediaStreamType" minOccurs="1" maxOccurs="unbounded"/>
		</xs:sequence>
	</xs:complexType>
	
	<xs:complexType name="BroadcastMediaStreamType">
<xs:sequence>
<xs:element name="NIPNetworkID">
<xs:simpleType>
<xs:restriction base="xs:unsignedShort">
<xs:minInclusive value="1"/>
<xs:maxInclusive value="65280"/>
</xs:restriction>
</xs:simpleType>
</xs:element>
<xs:element name="NIPCarrierID">
<xs:simpleType>
<xs:restriction base="xs:positiveInteger">
<xs:maxInclusive value="65535"/>
</xs:restriction>
</xs:simpleType>
</xs:element>
<xs:element name="NIPLinkID">
<xs:simpleType>
<xs:restriction base="xs:nonNegativeInteger">
<xs:maxInclusive value="65535"/>
</xs:restriction>
</xs:simpleType>
</xs:element>
<xs:element name="NIPServiceID">
<xs:simpleType>
<xs:restriction base="xs:unsignedShort">
<xs:minInclusive value="0"/>
<xs:maxInclusive value="65535"/>
</xs:restriction>
</xs:simpleType>
</xs:element>
<xs:element name="BroadcastMedia">
<xs:complexType>
<xs:sequence>
<xs:element name="URI" type="xs:string" minOccurs="0" maxOccurs="unbounded"/>
<xs:element name="InteractiveApplications" type="ns:InteractiveApplicationsType" minOccurs="0" maxOccurs="unbounded"/>
</xs:sequence>
</xs:complexType>
</xs:element>
</xs:sequence>
</xs:complexType>

<xs:complexType name="InteractiveApplicationsType">
<xs:sequence>
<xs:element name="ApplicationType">
<xs:simpleType>
<xs:restriction base="xs:string">
<xs:enumeration value="HbbTV"/>
<xs:enumeration value="MHP"/>
<xs:enumeration value="MHEG5"/>
<xs:enumeration value="Proprietary"/>
</xs:restriction>
</xs:simpleType>
</xs:element>
<xs:element name="ApplicationID" type="xs:integer" />
<xs:element name="ApplicationURI" type="xs:string" />
</xs:sequence>
</xs:complexType>

</xs:schema>