<?xml version="1.0"?>
<xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema">

	<xsd:annotation>
		<xsd:documentation>
			Master Data schema
			PCT, CLAS, MAT
		</xsd:documentation>
	</xsd:annotation>

	<xsd:element name="MasterDataItem" type="CodeItem" minOccurs="1"/>


		<xsd:complexType name="CodeItem">
			<xsd:sequence>
				<xsd:element name="Item" type="xsd:string"/>
				<xsd:element name="Code" type="xsd:string"/>
				<xsd:element name="Hierarchy_Code" type="xsd:string"/>
				<xsd:element name="CodeType" type="xsd:string"/>
				<xsd:element name="ShortDescription" type="xsd:string"/>
				<xsd:element name="Description" type="xsd:string"/>
				<xsd:element name="VarietyInfo" type="VarietyDescription " minOccurs="0" maxOccurs="1"/>
				
			</xsd:sequence>
		</xsd:complexType>


	<xsd:complexType name="VarietyDescription ">
		<xsd:attribute name="TradeMark" type="xsd:boolean"/>
		<xsd:attribute name="RegisteredMark" type="xsd:boolean"/>
		<xsd:attribute name="TradeMarkDescription" type="xsd:string"/>
		<xsd:attribute name="VarietyName2" type="xsd:string"/>
	</xsd:complexType>


		<xsd:complexType name="UOM">
			<xsd:all>
				<xsd:element name="Volume" type="Volume"/>
				<xsd:element name="Weight" type="Weight"/>
			</xsd:all>
		</xsd:complexType>


		<xsd:complexType name="Volume">
			<xsd:attribute name="VolumeUnit" type="xsd:string" use="required"/>
		</xsd:complexType>



		<xsd:complexType name="Weight">
			<xsd:attribute name="WeightUnit" type="xsd:string" use="required"/>
		</xsd:complexType>



		<xsd:complexType name="Weight">
			<xsd:choice>
				<xsd:element name="PCT" fixed="PCT"/>
				<xsd:element name="CLAS" fixed="CLAS"/>
				<xsd:element name="MAT" fixed="MAT"/>
			</xsd:choice>
		</xsd:complexType>


</xsd:schema>