<?xml version="1.0" encoding="UTF-8"?>
<!-- edited with XMLSPY v5 rel. 4 U (http://www.xmlspy.com) by leonim (Die Schweizerische Post) -->
<xs:schema 
	targetNamespace="http://www.post.ch/ShipmentModelLibrary/v02" 
	xmlns:sml="http://www.post.ch/ShipmentModelLibrary/v02"
	xmlns:xs="http://www.w3.org/2001/XMLSchema" 
	elementFormDefault="unqualified" attributeFormDefault="unqualified">
	
	<xs:include schemaLocation="ExtensionType.xsd"/>
	<xs:complexType name="FileType">
		<xs:annotation>
			<xs:documentation>This type represent a generic file, in various formats: Either a stream, a URL, an ID, etc</xs:documentation>
		</xs:annotation>
		<xs:sequence>
		<xs:element name="Timestamp" type="xs:dateTime">
				<xs:annotation>
					<xs:documentation>Timestamp of the image</xs:documentation>
				</xs:annotation>
			</xs:element>
			<xs:element name="Comment" type="xs:string" minOccurs="0">
				<xs:annotation>
					<xs:documentation>Additional image informations</xs:documentation>
				</xs:annotation>
			</xs:element>
			<xs:element name="Name" type="xs:string" minOccurs="0">
				<xs:annotation>
					<xs:documentation>filename</xs:documentation>
				</xs:annotation>
			</xs:element>
			<xs:element name="Type" type="xs:string" minOccurs="0">
				<xs:annotation>
					<xs:documentation>file type (JPG, PFD, Etc)</xs:documentation>
				</xs:annotation>
			</xs:element>
			<xs:element name="Size" type="xs:string" minOccurs="0">
				<xs:annotation>
					<xs:documentation>file size in bytes</xs:documentation>
				</xs:annotation>
			</xs:element>
			<xs:choice>
				<xs:element name="Stream" type="xs:string">
					<xs:annotation>
						<xs:documentation>The base64 bytestream of the file</xs:documentation>
					</xs:annotation>
				</xs:element>
				<xs:element name="URL" type="xs:string">
					<xs:annotation>
						<xs:documentation>An URL where the file may be retrieved</xs:documentation>
					</xs:annotation>
				</xs:element>
				<xs:element name="Id" type="xs:string">
					<xs:annotation>
						<xs:documentation>A generic reference to the file: filename, an Id, etc</xs:documentation>
					</xs:annotation>
				</xs:element>
			</xs:choice>
			<xs:element name="Extension" type="sml:ExtensionType" minOccurs="0">
				<xs:annotation>
					<xs:documentation>Type Extension</xs:documentation>
				</xs:annotation>
			</xs:element>			
		</xs:sequence>
	</xs:complexType>
</xs:schema>