<?xml version="1.0" encoding="UTF-8"?>
<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" targetNamespace="urn:dvb:metadata:nativeip:2023" xmlns="urn:dvb:metadata:nativeip:2023" elementFormDefault="qualified">
	<xs:element name="PrivateDataSignallingManifest" type="PrivateDataSignallingManifestType" />
	
	<xs:complexType name="PrivateDataSignallingManifestType">
		<xs:sequence>
			<xs:element name="VersionUpdate" type="xs:dateTime" />
			<xs:element name="PrivateDataProvider" type="PrivateDataProviderType" minOccurs="1" maxOccurs="unbounded" />
		</xs:sequence>
	</xs:complexType>
	
	<xs:complexType name="PrivateDataProviderType">
		<xs:sequence>
			<xs:element name="PrivateDataSession" type="PrivateDataSessionType" minOccurs="0" maxOccurs="unbounded" />
		</xs:sequence>
		<xs:attribute name="privateDataProviderID" type="PrivateDataSpecID" use="required" />
	</xs:complexType>
	<xs:simpleType name="PrivateDataSpecID">
		<xs:restriction base="xs:hexBinary">
			<xs:length value="4" />
		</xs:restriction>
	</xs:simpleType>
	
	<xs:complexType name="PrivateDataSessionType">
		<xs:sequence>
			<xs:element name="VersionUpdate" type="xs:dateTime" minOccurs="0" />
			<!-- element should start with upper-case -->
			<!-- Tags should be rename to TagRef to clearly indicate that this is a ref to a tag of the Bootstrap MGC -->
			<xs:element name="TagRef" type="xs:anyURI" minOccurs="1" maxOccurs="unbounded" />
		</xs:sequence>
	</xs:complexType>
</xs:schema>
