Schema Name: AgXML_v2.0_Message_ContractPricing.xsd
Target Namespace: urn:www.agxml.org:schemas:all:2:0
Collapse XSD Schema Code:

<!-- 
      Copyright 2001-2006 AgXML, LLC. All rights reserved.
      Use of this schema is subject to the license agreement available at http://www.agxml.org.
-->
<xsd:schema targetNamespace="urn:www.agxml.org:schemas:all:2:0" xmlns="urn:www.agxml.org:schemas:all:2:0" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
	<xsd:include schemaLocation="AgXML_v2.0_Shared.xsd"/>
	<xsd:element name="ContractPricing" type="ContractPricingType"/>
	<xsd:complexType name="ContractPricingType">
		<xsd:sequence>
			<xsd:element ref="ContractPricingHeader"/>
			<xsd:element ref="ContractPricingDetail"/>
		</xsd:sequence>
	</xsd:complexType>
	<xsd:element name="ContractPricingDateTime" type="ContractPricingDateTimeType"/>
	<xsd:complexType name="ContractPricingDateTimeType">
		<xsd:sequence>
			<xsd:element ref="Date"/>
			<xsd:element ref="Time" minOccurs="0"/>
		</xsd:sequence>
	</xsd:complexType>
	<xsd:element name="ContractPricingDetail" type="ContractPricingDetailType"/>
	<xsd:complexType name="ContractPricingDetailType">
		<xsd:sequence>
			<xsd:element ref="PricingCode"/>
			<xsd:element ref="PricingMethod" minOccurs="0"/>
			<xsd:element ref="PriceTypeFrom"/>
			<xsd:element ref="PriceTypeTo"/>
			<xsd:element ref="PricingQuantity"/>
			<xsd:element ref="PricingQuantityBalance"/>
			<xsd:element ref="PriceInformation"/>
			<xsd:element ref="OriginalPriceInformation" minOccurs="0"/>
			<xsd:element ref="OriginalContractDetailInformation"/>
			<xsd:element ref="Remark" minOccurs="0" maxOccurs="unbounded"/>
		</xsd:sequence>
	</xsd:complexType>
	<xsd:element name="ContractPricingHeader" type="ContractPricingHeaderType"/>
	<xsd:complexType name="ContractPricingHeaderType">
		<xsd:sequence>
			<xsd:element ref="ContractPricingOriginatorInformation"/>
			<xsd:element ref="ContractPricingDateTime"/>
			<xsd:element ref="Buyer"/>
			<xsd:element ref="Seller"/>
			<xsd:element ref="Agent" minOccurs="0"/>
			<xsd:element ref="Remark" minOccurs="0" maxOccurs="unbounded"/>
		</xsd:sequence>
	</xsd:complexType>
	<xsd:element name="ContractPricingIdentifier" type="ContractPricingIdentifierType"/>
	<xsd:simpleType name="ContractPricingIdentifierType">
		<xsd:restriction base="xsd:string"/>
	</xsd:simpleType>
	<xsd:element name="ContractPricingOriginator" type="ContractPricingOriginatorType"/>
	<xsd:simpleType name="ContractPricingOriginatorType">
		<xsd:restriction base="xsd:string"/>
	</xsd:simpleType>
	<xsd:element name="ContractPricingOriginatorInformation" type="ContractPricingOriginatorInformationType"/>
	<xsd:complexType name="ContractPricingOriginatorInformationType">
		<xsd:sequence>
			<xsd:element ref="ContractPricingOriginator"/>
			<xsd:element ref="ContractPricingIdentifier"/>
		</xsd:sequence>
	</xsd:complexType>
	<xsd:element name="OriginalContractDetailInformation" type="OriginalContractDetailInformationType"/>
	<xsd:complexType name="OriginalContractDetailInformationType">
		<xsd:sequence>
			<xsd:element ref="ContractCommodityInformation"/>
			<xsd:element ref="ContractQuantity"/>
			<xsd:element ref="ShipmentOrDeliveryPeriod"/>
			<xsd:element ref="TransportationMode" minOccurs="0"/>
		</xsd:sequence>
	</xsd:complexType>
	<xsd:element name="OriginalPriceInformation" type="OriginalPriceInformationType"/>
	<xsd:complexType name="OriginalPriceInformationType">
		<xsd:sequence>
			<xsd:element ref="FlatPrice" minOccurs="0"/>
			<xsd:element ref="BasisPrice" minOccurs="0"/>
			<xsd:element ref="FuturesPrice" minOccurs="0"/>
		</xsd:sequence>
	</xsd:complexType>
	<xsd:element name="PriceTypeFrom" type="PriceTypeFromType"/>
	<xsd:simpleType name="PriceTypeFromType">
		<xsd:restriction base="xsd:string"/>
	</xsd:simpleType>
	<xsd:element name="PriceTypeTo" type="PriceTypeToType"/>
	<xsd:simpleType name="PriceTypeToType">
		<xsd:restriction base="xsd:string"/>
	</xsd:simpleType>
	<xsd:element name="PricingCode" type="PricingCodeType"/>
	<xsd:simpleType name="PricingCodeType">
		<xsd:restriction base="ListPricingCode"/>
	</xsd:simpleType>
	<xsd:element name="PricingMethod" type="PricingMethodType"/>
	<xsd:simpleType name="PricingMethodType">
		<xsd:restriction base="ListPricingMethod"/>
	</xsd:simpleType>
	<xsd:element name="PricingQuantity" type="PricingQuantityType"/>
	<xsd:complexType name="PricingQuantityType">
		<xsd:simpleContent>
			<xsd:extension base="xsd:decimal">
				<xsd:attribute name="commodityUnitOfMeasure" type="ListCommodityUnitOfMeasure" use="required"/>
			</xsd:extension>
		</xsd:simpleContent>
	</xsd:complexType>
	<xsd:element name="PricingQuantityBalance" type="PricingQuantityBalanceType"/>
	<xsd:complexType name="PricingQuantityBalanceType">
		<xsd:simpleContent>
			<xsd:extension base="xsd:decimal">
				<xsd:attribute name="commodityUnitOfMeasure" type="ListCommodityUnitOfMeasure" use="required"/>
			</xsd:extension>
		</xsd:simpleContent>
	</xsd:complexType>
</xsd:schema>
Collapse ComplexTypes:
Collapse Elements:
Collapse SimpleTypes: