<?xml version="1.0" encoding="utf-8" ?>
<xs:schema targetNamespace="urn:defra.gov.uk:ESP:SeedCerts" xmlns:gt="http://www.govtalk.gov.uk/Schemas/govtalk/core"
	xmlns:SeedCerts="urn:defra.gov.uk:ESP:SeedCerts" xmlns:xs="http://www.w3.org/2001/XMLSchema"
	elementFormDefault="qualified" attributeFormDefault="unqualified" version="4.2" id="SC_NON_NLVarieties">
	<xs:annotation>
		<xs:documentation>
			This Schema is used to submit non-NL variety changes through to NIAB
		</xs:documentation>
		<xs:appinfo>Defra, Seed Certification, Enforcements, NIAB</xs:appinfo>
	</xs:annotation>
	<xs:include schemaLocation="SC_Common.xsd"/>

	<xs:element name="NON_NLVarieties" type="SeedCerts:NonNLVarietiesType" >
		<xs:annotation>
			<xs:documentation>Root node for Non-NL Varieties</xs:documentation>
		</xs:annotation>
	</xs:element>

	<xs:complexType name="NonNLVarietiesType">
		<xs:sequence>
			<xs:element name="MessageCreationTimestamp" type="xs:dateTime" minOccurs="0" />
			<xs:element name="ActionType" type="SeedCerts:ActionType">
				<xs:annotation>
					<xs:documentation>Action type performed by the message</xs:documentation>
				</xs:annotation>
			</xs:element>
			<xs:element name="Species" type="SeedCerts:SpeciesNameType" />
			<xs:element name="OriginalVariety" type="SeedCerts:LongStringType" minOccurs="0" />
			<xs:element name="Variety" type="SeedCerts:LongStringType" />
			<xs:element name="OriginalCode" type="SeedCerts:ShortStringType" minOccurs="0" />
			<xs:element name="Code" type="SeedCerts:ShortStringType" />
			<xs:element name="NIABKindCode" type="SeedCerts:NIABKindCodeType"/>
			<xs:element name="Hybrid" type="SeedCerts:YesNoType" />
			<xs:element name="GM" type="SeedCerts:YesNoType" />
			<xs:element name="StatusCode" type="SeedCerts:NonNLVarietyStatusCode" />
		</xs:sequence>
	</xs:complexType>
</xs:schema>
