<?xml version="1.0" encoding="UTF-8"?>
<!-- From: http://www.unece.org/cefact/documents/xml-schema.zip 2007-04-03  -->
<!-- ====================================================================== -->
<!-- =====  Cross Industry Invoice Schema Module                      ===== -->
<!-- ====================================================================== -->
<!--
Schema agency:   UN/CEFACT
Schema version:   1.0
Schema date:        29 March 2007

Copyright (C) UN/CEFACT (2007). All Rights Reserved.

This document and translations of it may be copied and furnished to others, and
derivative works that comment on or otherwise explain it or assist in its
implementation may be prepared, copied, published and distributed, in whole or
in part, without restriction of any kind, provided that the above copyright
notice and this paragraph are included on all such copies and derivative works.

However, this document itself may not be modified in any way, such as by removing
the copyright notice or references to UN/CEFACT, except as needed for the purpose
of developing UN/CEFACT specifications, in which case the procedures for copyrights
defined in the UN/CEFACT Intellectual Property Rights document must be followed, or
as required to translate it into languages other than English.

The limited permissions granted above are perpetual and will not be revoked by
UN/CEFACT or its successors or assigns.

This document and the information contained herein is provided on an "AS IS" basis
and UN/CEFACT DISCLAIMS ALL WARRANTIES, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED
TO ANY WARRANTY THAT THE USE OF THE INFORMATION HEREIN WILL NOT INFRINGE ANY RIGHTS
OR ANY IMPLIED WARRANTIES OF MERCHANTABILITY OR FITNESS FOR A PARTICULAR PURPOSE.
-->
<xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:cii="urn:un:unece:uncefact:data:draft:CrossIndustryInvoice:1" xmlns:ram="urn:un:unece:uncefact:data:draft:ReusableAggregateBusinessInformationEntity:2" xmlns:udt="urn:un:unece:uncefact:data:standard:UnqualifiedDataType:3" xmlns:qdt="urn:un:unece:uncefact:data:draft:QualifiedDataType:1" xmlns:ccts="urn:un:unece:uncefact:data:standard:CoreComponentsTechnicalSpecification:2" targetNamespace="urn:un:unece:uncefact:data:draft:CrossIndustryInvoice:1" elementFormDefault="qualified" attributeFormDefault="unqualified" version="1.0">
	<!-- ======================================================================= -->
	<!-- =====  Imports                                                     ==== -->
	<!-- ======================================================================= -->
	<!-- =====  Import of Reusable Aggregate Business Information Entity Schema Module ===== -->
	<!-- ======================================================================= -->
	<xsd:import namespace="urn:un:unece:uncefact:data:draft:ReusableAggregateBusinessInformationEntity:2" schemaLocation="http://www.unece.org/uncefact/data/draft/ReusableAggregateBusinessInformationEntity_2p0prc.xsd"/>
	<!-- ======================================================================= -->
	<!-- =====  Import of Unqualified DataType Schema Module 	       ===== -->
	<!-- ======================================================================= -->
	<xsd:import namespace="urn:un:unece:uncefact:data:standard:UnqualifiedDataType:3" schemaLocation="http://www.unece.org/uncefact/data/standard/UnqualifiedDataType_3p0.xsd"/>
	<!-- ======================================================================= -->
	<!-- =====  Import of Qualified DataType Schema Module 	               ===== -->
	<!-- ======================================================================= -->
	<xsd:import namespace="urn:un:unece:uncefact:data:draft:QualifiedDataType:1" schemaLocation="http://www.unece.org/uncefact/data/draft/QualifiedDataType_1p0.xsd"/>
	<!-- ======================================================================= -->
	<!-- =====  Element Declarations                                       ===== -->
	<!-- ======================================================================= -->
	<!-- =====  Root Element Declarations   			       ===== -->
	<!-- ======================================================================= -->
	<xsd:element name="CrossIndustryInvoice" type="cii:CrossIndustryInvoiceType">
		<xsd:annotation>
			<xsd:documentation xml:lang="en">
				<ccts:UniqueID>UNMCII1</ccts:UniqueID>
				<ccts:Acronym>CII</ccts:Acronym>
				<ccts:Name>CrossIndustryInvoice</ccts:Name>
				<ccts:Version>1.0</ccts:Version>
				<ccts:Definition>The cross industry invoice is an electronic
                                document exchanged between trading partners with a prime function
                                as a request for payment.  It is an important accounting document
                                and has potential legal implications for sender and receiver.
                                It is also used in the European Union as the key document for VAT
                                declaration and reclamation, for statistics declaration in respect
                                of intra community trade, and to support export and import
                                declaration in respect of trade with countries outside the
                                European community.</ccts:Definition>
			</xsd:documentation>
		</xsd:annotation>
	</xsd:element>
	<!-- ================================================================== -->
	<!-- =====  Type Definitions                                      ===== -->
	<!-- ================================================================== -->
	<!-- =====  Type Definitions: CrossIndustryInvoiceType		  ===== -->
	<!-- ================================================================== -->
	<xsd:complexType name="CrossIndustryInvoiceType">
		<xsd:sequence>
			<xsd:element name="SupplierParty" type="ram:SupplierPartyType" minOccurs="0">
			</xsd:element>
			<xsd:element name="CustomerParty" type="ram:CustomerPartyType" minOccurs="0">
			</xsd:element>
			<xsd:element name="BuyerParty" type="ram:BuyerPartyType" minOccurs="0">
			</xsd:element>
			<xsd:element name="SellerParty" type="ram:SellerPartyType" minOccurs="0">
			</xsd:element>
			<xsd:element name="ConsignorParty" type="ram:ConsignorPartyType" minOccurs="0">
			</xsd:element>
			<xsd:element name="ConsigneeParty" type="ram:ConsigneePartyType" minOccurs="0">
			</xsd:element>
			<xsd:element name="InvoiceeParty" type="ram:InvoiceePartyType" minOccurs="0">
			</xsd:element>
			<xsd:element name="ManufacturerParty" type="ram:ManufacturerPartyType" minOccurs="0">
			</xsd:element>
			<xsd:element name="PayeeParty" type="ram:PayeePartyType" minOccurs="0">
			</xsd:element>
			<xsd:element name="InvoiceIssuerParty" type="ram:InvoiceIssuerPartyType" minOccurs="0">
			</xsd:element>
			<xsd:element name="TaxRepresentativeParty" type="ram:TaxRepresentativePartyType" minOccurs="0">
			</xsd:element>
			<xsd:element name="CustomerAccountantParty" type="ram:CustomerAccountantPartyType" minOccurs="0">
			</xsd:element>
			<xsd:element name="SupplierAccountantParty" type="ram:SupplierAccountantPartyType" minOccurs="0">
			</xsd:element>
			<xsd:element name="InvoiceTradeLineItem" type="ram:InvoiceTradeLineItemType" minOccurs="0" maxOccurs="unbounded">
			</xsd:element>
			<xsd:element name="BillingPeriod" type="ram:BillingPeriodType" minOccurs="0" maxOccurs="unbounded">
			</xsd:element>
			<xsd:element name="TradeTransportMeans" type="ram:TradeTransportMeansType" minOccurs="0">
			</xsd:element>
			<xsd:element name="TradeTransportMode" type="ram:TradeTransportModeType" minOccurs="0">
			</xsd:element>
			<xsd:element name="PayableAccountingAccount" type="ram:PayableAccountingAccountType" minOccurs="0" maxOccurs="unbounded">
			</xsd:element>
			<xsd:element name="ReceivableAccountingAccount" type="ram:ReceivableAccountingAccountType" minOccurs="0" maxOccurs="unbounded">
			</xsd:element>
			<xsd:element name="BillingCurrencyExchange" type="ram:BillingCurrencyExchangeType" minOccurs="0">
			</xsd:element>
			<xsd:element name="PaymentCurrencyExchange" type="ram:PaymentCurrencyExchangeType" minOccurs="0">
			</xsd:element>
			<xsd:element name="AlternativePaymentCurrencyExchange" type="ram:AlternativePaymentCurrencyExchangeType" minOccurs="0">
			</xsd:element>
			<xsd:element name="TaxCurrencyExchange" type="ram:TaxCurrencyExchangeType" minOccurs="0">

			</xsd:element>
			<xsd:element name="PayeeFinancialAccount" type="ram:PayeeFinancialAccountType" minOccurs="0" maxOccurs="unbounded">
			</xsd:element>
			<xsd:element name="TradeAllowanceCharge" type="ram:TradeAllowanceChargeType" minOccurs="0" maxOccurs="unbounded">
			</xsd:element>
			<xsd:element name="BillingAdjustment" type="ram:BillingAdjustmentType" minOccurs="0" maxOccurs="unbounded">
			</xsd:element>
			<xsd:element name="TradeNote" type="ram:TradeNoteType" minOccurs="0" maxOccurs="unbounded">
			</xsd:element>
			<xsd:element name="TradeDeliveryTerms" type="ram:TradeDeliveryTermsType" minOccurs="0">
			</xsd:element>
			<xsd:element name="BillingDocument" type="ram:BillingDocumentType">
			</xsd:element>
			<xsd:element name="BillingPayment" type="ram:BillingPaymentType" minOccurs="0" maxOccurs="unbounded">
			</xsd:element>
			<xsd:element name="AdvancePayment" type="ram:AdvancePaymentType" minOccurs="0" maxOccurs="unbounded">
			</xsd:element>
			<xsd:element name="ReferencedDocument" type="ram:ReferencedDocumentType" minOccurs="0" maxOccurs="unbounded">
			</xsd:element>
			<xsd:element name="BillingMonetarySummation" type="ram:BillingMonetarySummationType" minOccurs="0">
			</xsd:element>
			<xsd:element name="CategorySubtotalTax" type="ram:CategorySubtotalTaxType" minOccurs="0" maxOccurs="unbounded">
			</xsd:element>
		</xsd:sequence>
	</xsd:complexType>
</xsd:schema>

