<?xml version="1.0" encoding="UTF-8"?>
<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns="http://uri.etsi.org/02657/v1.26.1#/RetainedData" targetNamespace="http://uri.etsi.org/02657/v1.26.1#/RetainedData" elementFormDefault="qualified">
	<xs:include schemaLocation="RDMessage,ver26.xsd"/>
	<!-- Natparas Version: 01.26.01.08.0.07 -->
	<xs:complexType name="RadioStructureResult">
		<xs:sequence>
			<!-- radiationPattern is a base64 encoded TIFF -->
			<xs:element name="radiationPattern" type="xs:string"/>
			<!-- TR 7.2: userLocationInformation holds the cell information like cell ID, LAC, ECI etc. -->
			<xs:element name="userLocationInformation" minOccurs="0">
				<xs:simpleType>
					<xs:restriction base="xs:hexBinary">
						<xs:minLength value="1"/>
						<xs:maxLength value="35"/>
					</xs:restriction>
				</xs:simpleType>
			</xs:element>
			<!-- TR 7.2: spot is for geoCoordinates and azimut, if no geoCoordinates are avaiable then a postal address is also possible -->
			<xs:element name="spot" type="Spot" minOccurs="0"/>
			<!-- TR 7.2: Das Element antennaType wurde gestrichen   -->
			<xs:element name="antennaHeight" type="xs:string" minOccurs="0"/>
		</xs:sequence>
	</xs:complexType>
	<xs:complexType name="LawfulInterceptionResult">
		<xs:sequence>
			<xs:element name="lIID" type="xs:string"/>
			<xs:element name="begin" type="GeneralizedTime" minOccurs="0"/>
			<xs:element name="end" type="GeneralizedTime" minOccurs="0"/>
			<xs:element name="modification" type="GeneralizedTime" minOccurs="0"/>
		</xs:sequence>
	</xs:complexType>
	<xs:complexType name="LocatingResult">
		<xs:sequence>
			<xs:element name="mSISDN" type="xs:string" minOccurs="0"/>
			<xs:element name="iMSI" type="IMSI" minOccurs="0"/>
			<xs:element name="iMEI" type="IMEI" minOccurs="0"/>
			<xs:element name="loginStatus" type="xs:string" minOccurs="0"/>
			<xs:element name="detachReason" type="xs:string" minOccurs="0"/>
			<xs:element name="vLR" type="xs:string" minOccurs="0"/>
			<!-- TR 7.2: neu hinzugefügt um VLR und MME unterscheiden zu können -->
			<xs:element name="mME" type="xs:string" minOccurs="0"/>
			<xs:element name="lastRadioContact" type="GeneralizedTime" minOccurs="0"/>
			<xs:element name="transmitterDetails" type="TransmitterDetails" minOccurs="0"/>
			<!-- TR 7.2: UserLocationInformation wie in ETSI TS 102 657 unter Location -->
			<xs:element name="userLocationInformation" minOccurs="0">
				<xs:simpleType>
					<xs:restriction base="xs:hexBinary">
						<xs:minLength value="1"/>
						<xs:maxLength value="35"/>
					</xs:restriction>
				</xs:simpleType>
			</xs:element>
			<xs:element name="extendedLocation" type="ExtendedLocation" minOccurs="0"/>
			<xs:element name="postalLocation" type="AddressInformation" minOccurs="0"/>
			<!-- TR 7.2: Im Fall von Anfragen, die nicht sich direkt auf Location, sondern auf die Person beziehen wie z.B. Abfragen nach IP. Wenn es nur um Name + Adresse geht würde auch die postalLocation ausreichen -->
			<xs:element name="subscribedTelephonyServices" type="SubscribedTelephonyServices" minOccurs="0"/>
		</xs:sequence>
	</xs:complexType>
	<xs:complexType name="NationalTelephonySubscriptionInfo">
		<xs:sequence>
			<xs:element name="countryCode" type="xs:string" default="DE"/>
			<xs:element name="headerID" type="xs:string"/>
			<xs:element name="pIN" type="xs:string" minOccurs="0"/>
			<xs:element name="internetLeitungskennung" type="InternetLeitungskennung" minOccurs="0"/>
		</xs:sequence>
	</xs:complexType>
	<xs:complexType name="NationalTelephonyServiceUsage">
		<xs:sequence>
			<xs:element name="countryCode" type="xs:string" default="DE"/>
			<xs:element name="headerID" type="xs:string"/>
			<xs:element name="internetAccess" type="NAServiceUsage" minOccurs="0"/>
			<xs:element name="multimediaService" type="MultimediaServiceUsage" minOccurs="0"/>
			<xs:element name="msgService" type="MsgServiceUsage" minOccurs="0"/>
		</xs:sequence>
	</xs:complexType>
	<xs:complexType name="NationalResponsePayload">
		<xs:sequence>
			<xs:element name="countryCode" type="xs:string" default="DE"/>
			<xs:element name="headerID" type="xs:string"/>
			<xs:element name="additionalInformation" type="xs:string" minOccurs="0"/>
			<xs:element name="additionalDocument" minOccurs="0">
				<xs:complexType>
					<xs:sequence>
						<xs:element name="documentData" type="xs:string"/>
						<xs:element name="documentType" type="xs:string"/>
					</xs:sequence>
				</xs:complexType>
			</xs:element>
			<xs:element name="responseDetails" minOccurs="0">
				<xs:complexType>
					<xs:choice>
						<xs:element name="locating">
							<xs:complexType>
								<xs:sequence minOccurs="0" maxOccurs="unbounded">
									<xs:element name="LocatingResult" type="LocatingResult"/>
								</xs:sequence>
							</xs:complexType>
						</xs:element>
						<xs:element name="radioStructure" type="RadioStructureResult"/>
						<xs:element name="lawfulInterception" type="LawfulInterceptionResult"/>
						<xs:element name="rejectedTargets">
							<xs:complexType>
								<xs:sequence minOccurs="0" maxOccurs="unbounded">
									<xs:element name="rejectedTargetInfo" type="RejectedTargetInfo"/>
								</xs:sequence>
							</xs:complexType>
						</xs:element>
					</xs:choice>
				</xs:complexType>
			</xs:element>
		</xs:sequence>
	</xs:complexType>
	<!-- Kennzeichnung der Datensätze nach Datenherkunft 96 oder 113b TKG -->
	<xs:complexType name="TypeOfData">
		<xs:choice>
			<!-- TR 7.2: umbenannt zur Klarstellung -->
			<xs:element name="bevorrateteVerkehrsdaten" type="NULL"/>
			<!-- TR 7.2: umbenannt zur Klarstellung -->
			<xs:element name="betrieblicheVerkehrsdaten" type="NULL"/>
		</xs:choice>
	</xs:complexType>
	<xs:complexType name="NationalRecordPayload">
		<xs:sequence>
			<!-- TR 7.2: countryCode und headerID hinzugefügt, damit wir analog zu den anderen National... Types bleiben -->
			<xs:element name="countryCode" type="xs:string" default="DE"/>
			<xs:element name="headerID" type="xs:string"/>
			<xs:element name="typeOfData" type="TypeOfData"/>
		</xs:sequence>
	</xs:complexType>
	<!-- Analog zum gleichnamigen Element der TR AAV -->
	<xs:complexType name="InternetLeitungskennung">
        <xs:sequence>
            <xs:element name="kennung" type="xs:string"/>
            <xs:element name="kennungstyp" type="xs:string"/>
            <xs:element name="netzbetreiber" type="xs:string"/>
        </xs:sequence>
    </xs:complexType>
	<!-- TR 7.2: hinzugefügt um ASN.1 Kompatibilität wiederherzustellen -->
	<xs:complexType name="RejectedTargetInfo">
        <xs:sequence>
            <xs:element name="rejectedTargetNumber" type="xs:integer"/>
			<xs:element name="rejectedTargetErrorMessage" type="xs:string" minOccurs="0"/>
        </xs:sequence>
    </xs:complexType>
</xs:schema>