<?xml version="1.0" encoding="UTF-8"?>
<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns="http://uri.etsi.org/02657/v1.28.1#/RetainedData" targetNamespace="http://uri.etsi.org/02657/v1.28.1#/RetainedData" elementFormDefault="qualified">
	<xs:include schemaLocation="RDMessage,ver26.xsd"/>
	<!-- Natparas Version: 01.28.01.08.1.01 -->
	<xs:complexType name="RadioStructureResult">
		<xs:sequence>
			<!-- TR 8.1 radiationPattern is a base64 encoded document -->
			<xs:element name="radiationPattern" type="xs:string"/>
			<!-- TR 8.1 filetype of the base64 encoded document in radiationPattern -->
			<xs:element name="radiationPatternFileType" type="xs:string"/>
			<!-- TR 8.1 userLocationInformation und spot ab TR 8.1 neu unter location gesammelt, da dort nun auch die NCGI zu finden ist -->                 
            <xs:element name="location" type="Location" 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 8.1 userLocationInformation, extendedLocation und postalLocation ab TR 8.1 neu unter location gesammelt, da dort nun auch die NCGI zu finden ist -->                 
            <xs:element name="location" type="Location" minOccurs="0"/>
			<!-- TR 7.2: Im Fall von Anfragen, die sich nicht 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"/>
			<!-- TR 8.1: AdditionalInformation analog zu Bestands- und Verkehrsdaten für Informationen die zu keinem der anderen Felder passen-->
			<xs:element name="additionalInformation" minOccurs="0" type="AdditionalInformation"/>
		</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>