<?xml version="1.0" encoding="UTF-8"?>
<xsd:schema xmlns="http://organicXML.com/schema/xsd/organicXML-0.1b" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:ean="urn:ean.ucc:2" targetNamespace="http://organicXML.com/schema/xsd/organicXML-0.1b" elementFormDefault="qualified" attributeFormDefault="unqualified">
	<!--
*************************************************************************************

Used external xml schemas.

*************************************************************************************
	-->
	<xsd:import namespace="urn:ean.ucc:2" schemaLocation="NameAndAddress.xsd"/>
	<!--
*************************************************************************************

Complex type CompanyType used by DeliverToPartyType and 
extended by DistributorType.

*************************************************************************************
	-->
	<xsd:complexType name="CompanyType">
		<xsd:annotation>
			<xsd:documentation>Element for values of a company. Used by distributor and deliverToParty.</xsd:documentation>
		</xsd:annotation>
		<xsd:sequence>
			<xsd:element name="name" type="NameType" minOccurs="1" maxOccurs="1"/>
			<xsd:element name="name2" type="NameType" minOccurs="0" maxOccurs="1"/>
			<xsd:element name="address" type="ean:NameAndAddressType" minOccurs="0" maxOccurs="1"/>
			<xsd:element name="addressPostBox" type="ean:NameAndAddressType" minOccurs="0" maxOccurs="1"/>
			<xsd:element name="contacts" type="ContactsType" minOccurs="0" maxOccurs="1"/>
			<xsd:element name="identification" type="IdentificationType" minOccurs="1" maxOccurs="1"/>
		</xsd:sequence>
	</xsd:complexType>
	<!--
*************************************************************************************

Complex types used by CompanyType.

*************************************************************************************
	-->
	<xsd:complexType name="ContactsType">
		<xsd:annotation>
			<xsd:documentation>Elements for values of contact informations like phone and mail.</xsd:documentation>
		</xsd:annotation>
		<xsd:sequence>
			<xsd:element name="phone" type="PhoneType" minOccurs="0"/>
			<xsd:element name="fax" type="PhoneType" minOccurs="0"/>
			<xsd:element name="email" type="EMailType" minOccurs="0"/>
			<xsd:element name="web" type="WebAdressType" minOccurs="0"/>
		</xsd:sequence>
	</xsd:complexType>
	<xsd:complexType name="IdentificationType">
		<xsd:annotation>
			<xsd:documentation>Identification information of company.</xsd:documentation>
		</xsd:annotation>
		<xsd:sequence>
			<xsd:element name="holdingNumber" type="HoldingNumberType"/>
			<xsd:element name="typeId" type="IdentificationTypeIDType"/>
		</xsd:sequence>
	</xsd:complexType>
	<xsd:simpleType name="EMailType">
		<xsd:restriction base="xsd:string"/>
	</xsd:simpleType>
	<xsd:simpleType name="HoldingNumberType">
		<xsd:restriction base="xsd:string"/>
	</xsd:simpleType>
	<xsd:simpleType name="IdentificationTypeIDType">
		<xsd:restriction base="IDType"/>
	</xsd:simpleType>
	<xsd:simpleType name="NameType">
		<xsd:restriction base="xsd:string"/>
	</xsd:simpleType>
	<xsd:simpleType name="PhoneType">
		<xsd:restriction base="xsd:string"/>
	</xsd:simpleType>
	<xsd:simpleType name="WebAdressType">
		<xsd:restriction base="xsd:string"/>
	</xsd:simpleType>
	<!--
*************************************************************************************

Complex types used by other schema files.

*************************************************************************************
	-->
	<xsd:simpleType name="DateType">
		<xsd:restriction base="xsd:string">
		</xsd:restriction>
	</xsd:simpleType>
	<xsd:simpleType name="IDType">
		<xsd:restriction base="xsd:int">
			<xsd:minInclusive value="0"/>
		</xsd:restriction>
	</xsd:simpleType>
	<xsd:simpleType name="ValueType">
		<xsd:restriction base="xsd:float">
			<xsd:minInclusive value="0"/>
		</xsd:restriction>
	</xsd:simpleType>
	<xsd:complexType name="ValueUnitIDType">
		<xsd:sequence>
			<xsd:element name="value" type="ValueType"/>
			<xsd:element name="unitId" type="IDType"/>
		</xsd:sequence>
	</xsd:complexType>
</xsd:schema>

