<?xml version="1.0" encoding="UTF-8"?>
<!-- edited with XMLSpy v2005 rel. 3 U (http://www.altova.com) by Kenneth Wells (Equinox Ltd) -->
<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:ndd="urn:nzl:govt:registering:dogs:registration:3_0" xmlns:xNLb="NZL:govt:egu:xNAL:xNL-basic:version=3_3" xmlns:xAL="NZL:govt:egu:xNAL:xAL:version=3_3" targetNamespace="urn:nzl:govt:registering:dogs:registration:3_0" elementFormDefault="unqualified" attributeFormDefault="unqualified">
	<xs:import namespace="NZL:govt:egu:xNAL:xAL:version=3_3" schemaLocation="nz-xAL-3_3.xsd"/>
	<xs:import namespace="NZL:govt:egu:xNAL:xNL-basic:version=3_3" schemaLocation="nz-xNL-basic-3_3.xsd"/>
	<xs:simpleType name="taDogId">
		<xs:restriction base="xs:decimal">
			<xs:totalDigits value="12"/>
			<xs:fractionDigits value="0"/>
		</xs:restriction>
	</xs:simpleType>
	<xs:simpleType name="taOwnerId">
		<xs:restriction base="xs:decimal">
			<xs:totalDigits value="12"/>
			<xs:fractionDigits value="0"/>
		</xs:restriction>
	</xs:simpleType>
	<xs:simpleType name="taRegistrationNumber">
		<xs:restriction base="xs:decimal">
			<xs:totalDigits value="6"/>
			<xs:fractionDigits value="0"/>
		</xs:restriction>
	</xs:simpleType>
	<xs:simpleType name="taCode">
		<xs:annotation>
			<xs:documentation>The Territorial Authority code as selected from the predefined list nominated by the Department of Internal Affairs</xs:documentation>
		</xs:annotation>
		<xs:restriction base="xs:decimal">
			<xs:totalDigits value="3"/>
			<xs:fractionDigits value="0"/>
		</xs:restriction>
	</xs:simpleType>
	<xs:simpleType name="recordType">
		<xs:annotation>
			<xs:documentation>Whether INSERT, UPDATE or DELETE.  If the local record has not been sent to the National Dog Database before it should be marked INSERT.  If the local record has been sent before and is being re-sent to reflect changes it should be marked UPDATE.  If the local record has been deleted (as opposed to being merely superseded) then it should be marked DELETE.  In the latter case the record should contain the data that was held immediately prior to the local delete.  Where the local record has changed several times prior to it being sent to the National Dog Database, the record type should be set form the NDD's perspective so that if the NDD has not seen a record before it should be set as INSERT even if it was updated locally before being sent. The data in the record should reflect the state of the record at the time of sending and any record should only appear once in the file.</xs:documentation>
		</xs:annotation>
		<xs:restriction base="xs:string">
			<xs:enumeration value="INSERT"/>
			<xs:enumeration value="UPDATE"/>
			<xs:enumeration value="DELETE"/>
		</xs:restriction>
	</xs:simpleType>
	<xs:simpleType name="registrationYear">
		<xs:annotation>
			<xs:documentation>The year of the registration. This should be the calendar year in which the registration year begins.  For example, if the registration relates to the registration year beginning July 2006 this element should contain the value 2006</xs:documentation>
		</xs:annotation>
		<xs:restriction base="xs:decimal">
			<xs:fractionDigits value="0"/>
			<xs:totalDigits value="4"/>
			<xs:minInclusive value="1990"/>
			<xs:maxInclusive value="2100"/>
		</xs:restriction>
	</xs:simpleType>
	<xs:element name="dogAndOwnerData">
		<xs:complexType>
			<xs:sequence>
				<xs:element name="header">
					<xs:complexType>
						<xs:sequence>
							<xs:element name="schemaVersion" default="3_0">
								<xs:annotation>
									<xs:documentation>The version of this schema that the XML file complies with</xs:documentation>
								</xs:annotation>
								<xs:simpleType>
									<xs:restriction base="xs:string">
										<xs:length value="3"/>
										<xs:enumeration value="3_0"/>
									</xs:restriction>
								</xs:simpleType>
							</xs:element>
							<xs:element name="senderTaCode" type="ndd:taCode">
								<xs:annotation>
									<xs:documentation>A code which uniquely identifies the Territorial Authority that produced this file. Must contain a value selected from a standard list of TA codes</xs:documentation>
								</xs:annotation>
							</xs:element>
							<xs:element name="producedOnDatetime" type="xs:dateTime">
								<xs:annotation>
									<xs:documentation>The date and time that the data was extracted from the local system</xs:documentation>
								</xs:annotation>
							</xs:element>
							<xs:element name="fileType">
								<xs:annotation>
									<xs:documentation>Either INCR or FULL.  When set to INCR (Incremental) the file should contain all changes to local data that have occurred since the previous data extract. For each record that has changed in the local system, one record should appear in this file showing the current state of the local record at the time of extract.  If the local record has been deleted (rather than having been superseded with a newer record) a record of type DELETE should be included. When set to FULL (used for reconciliations and synchs) the file should contain all current data as defined in the National Dog Database Extract File XML Schema Guidelines</xs:documentation>
								</xs:annotation>
								<xs:simpleType>
									<xs:restriction base="xs:string">
										<xs:length value="4"/>
										<xs:enumeration value="INCR"/>
										<xs:enumeration value="FULL"/>
									</xs:restriction>
								</xs:simpleType>
							</xs:element>
							<xs:element name="sequenceNumber" nillable="true" minOccurs="0">
								<xs:annotation>
									<xs:documentation>The sequence number of the batch. This number should be supplied for incremental batches only and should be incremented sequentially. The National Dog Database will track which batches have been processed for each TA in the past and will only process the next one in sequence</xs:documentation>
								</xs:annotation>
								<xs:simpleType>
									<xs:restriction base="xs:decimal">
										<xs:totalDigits value="6"/>
										<xs:fractionDigits value="0"/>
									</xs:restriction>
								</xs:simpleType>
							</xs:element>
						</xs:sequence>
					</xs:complexType>
				</xs:element>
				<xs:element name="dog" minOccurs="0" maxOccurs="unbounded">
					<xs:complexType>
						<xs:sequence>
							<xs:element name="taDogId" type="ndd:taDogId">
								<xs:annotation>
									<xs:documentation>The unique identifier assigned to the dog by the territorial authority's local system. This identifier must remain consistent throughout the life of the dog record so that the National Dog Database can track information held about the dog</xs:documentation>
								</xs:annotation>
							</xs:element>
							<xs:element name="dogAlert" default="N">
								<xs:annotation>
									<xs:documentation>Indicates whether the local TA holds information on the dog relating to safety of the Animal Control Officer.</xs:documentation>
								</xs:annotation>
								<xs:simpleType>
									<xs:restriction base="xs:string">
										<xs:length value="1"/>
										<xs:enumeration value="Y"/>
										<xs:enumeration value="N"/>
									</xs:restriction>
								</xs:simpleType>
							</xs:element>
							<xs:element name="status">
								<xs:annotation>
									<xs:documentation>The status of the dog from the TA's perspective. Must be 'I' for currently In district, 'O' for Out of district or 'D' for Deactivated</xs:documentation>
								</xs:annotation>
								<xs:simpleType>
									<xs:restriction base="xs:string">
										<xs:length value="1"/>
										<xs:enumeration value="I"/>
										<xs:enumeration value="O"/>
										<xs:enumeration value="D"/>
									</xs:restriction>
								</xs:simpleType>
							</xs:element>
							<xs:element name="deactivatedReason" nillable="true" minOccurs="0">
								<xs:annotation>
									<xs:documentation>Should be supplied if and only if the status is 'D'. Must contain a value selected from a standard list of deactivated reason codes</xs:documentation>
								</xs:annotation>
								<xs:simpleType>
									<xs:restriction base="xs:string">
										<xs:maxLength value="3"/>
									</xs:restriction>
								</xs:simpleType>
							</xs:element>
							<xs:element name="name" nillable="true" minOccurs="0">
								<xs:annotation>
									<xs:documentation>The dog's name</xs:documentation>
								</xs:annotation>
								<xs:simpleType>
									<xs:restriction base="xs:string">
										<xs:maxLength value="50"/>
									</xs:restriction>
								</xs:simpleType>
							</xs:element>
							<xs:element name="breed1" nillable="true" minOccurs="0">
								<xs:annotation>
									<xs:documentation>The dog's breed.  In the case of a cross-bred dog, this will be the predominant breed. Must contain a code selected from a standard list of breed codes. This element is considered mandatory under the Dog Control Act and should be supplied in every case</xs:documentation>
								</xs:annotation>
								<xs:simpleType>
									<xs:restriction base="xs:string">
										<xs:maxLength value="4"/>
									</xs:restriction>
								</xs:simpleType>
							</xs:element>
							<xs:element name="breed2" nillable="true" minOccurs="0">
								<xs:annotation>
									<xs:documentation>In the case of a cross-bred dog, this will be the secondary breed. Must contain a code selected from a standard list of breed codes.</xs:documentation>
								</xs:annotation>
								<xs:simpleType>
									<xs:restriction base="xs:string">
										<xs:maxLength value="4"/>
									</xs:restriction>
								</xs:simpleType>
							</xs:element>
							<xs:element name="colour1" nillable="true" minOccurs="0">
								<xs:annotation>
									<xs:documentation>The predominant colour of the dog. Must contain a code selected from a standard list of colour codes. This element is considered mandatory under the Dog Control Act and should be supplied in every case.</xs:documentation>
								</xs:annotation>
								<xs:simpleType>
									<xs:restriction base="xs:string">
										<xs:maxLength value="3"/>
									</xs:restriction>
								</xs:simpleType>
							</xs:element>
							<xs:element name="colour2" nillable="true" minOccurs="0">
								<xs:annotation>
									<xs:documentation>The secondary colour of the dog. Must contain a code selected from a standard list of colour codes.</xs:documentation>
								</xs:annotation>
								<xs:simpleType>
									<xs:restriction base="xs:string">
										<xs:maxLength value="3"/>
									</xs:restriction>
								</xs:simpleType>
							</xs:element>
							<xs:element name="keptAtAddress" minOccurs="0">
								<xs:annotation>
									<xs:documentation>The address where the dog is ordinarily kept. This element is considered mandatory under the Dog Control Act and should be supplied in every case.</xs:documentation>
								</xs:annotation>
								<xs:complexType>
									<xs:sequence>
										<xs:element ref="xAL:AddressDetails"/>
									</xs:sequence>
								</xs:complexType>
							</xs:element>
							<xs:element name="yearOfBirth" nillable="true" minOccurs="0">
								<xs:annotation>
									<xs:documentation>The dog’s year of birth. This element is considered mandatory under the Dog Control Act and should be supplied in every case</xs:documentation>
								</xs:annotation>
								<xs:simpleType>
									<xs:restriction base="xs:decimal">
										<xs:totalDigits value="4"/>
										<xs:fractionDigits value="0"/>
										<xs:minInclusive value="1980"/>
										<xs:maxInclusive value="2100"/>
									</xs:restriction>
								</xs:simpleType>
							</xs:element>
							<xs:element name="monthOfBirth" nillable="true" minOccurs="0">
								<xs:annotation>
									<xs:documentation>The dog’s month of birth.</xs:documentation>
								</xs:annotation>
								<xs:simpleType>
									<xs:restriction base="xs:decimal">
										<xs:totalDigits value="2"/>
										<xs:fractionDigits value="0"/>
										<xs:minInclusive value="1"/>
										<xs:maxInclusive value="12"/>
									</xs:restriction>
								</xs:simpleType>
							</xs:element>
							<xs:element name="gender">
								<xs:annotation>
									<xs:documentation>Either 'M' for male or 'F' for female</xs:documentation>
								</xs:annotation>
								<xs:simpleType>
									<xs:restriction base="xs:string">
										<xs:maxLength value="1"/>
										<xs:enumeration value="M"/>
										<xs:enumeration value="F"/>
									</xs:restriction>
								</xs:simpleType>
							</xs:element>
							<xs:element name="desexed" default="N">
								<xs:annotation>
									<xs:documentation>Either 'Y' for yes or 'N' for no</xs:documentation>
								</xs:annotation>
								<xs:simpleType>
									<xs:restriction base="xs:string">
										<xs:maxLength value="1"/>
										<xs:enumeration value="Y"/>
										<xs:enumeration value="N"/>
									</xs:restriction>
								</xs:simpleType>
							</xs:element>
							<xs:element name="isoChipNumber" nillable="true" minOccurs="0">
								<xs:annotation>
									<xs:documentation>ISO standard chip number</xs:documentation>
								</xs:annotation>
								<xs:simpleType>
									<xs:restriction base="xs:decimal">
										<xs:totalDigits value="15"/>
										<xs:fractionDigits value="0"/>
									</xs:restriction>
								</xs:simpleType>
							</xs:element>
							<xs:element name="nonStandardChipNumber" nillable="true" minOccurs="0">
								<xs:annotation>
									<xs:documentation>The identifier of any non-standard chip implanted in the dog</xs:documentation>
								</xs:annotation>
								<xs:simpleType>
									<xs:restriction base="xs:string">
										<xs:maxLength value="30"/>
									</xs:restriction>
								</xs:simpleType>
							</xs:element>
							<xs:element name="classification" minOccurs="0">
								<xs:complexType>
									<xs:sequence>
										<xs:element name="classificationType">
											<xs:annotation>
												<xs:documentation>The type of dog classification. Must contain a code selected from a standard list</xs:documentation>
											</xs:annotation>
											<xs:simpleType>
												<xs:restriction base="xs:string">
													<xs:maxLength value="10"/>
												</xs:restriction>
											</xs:simpleType>
										</xs:element>
										<xs:element name="classificationSection" nillable="true" minOccurs="0">
											<xs:annotation>
												<xs:documentation>Section/provision under which the classification was made. Must contain a value selected from a standard list</xs:documentation>
											</xs:annotation>
											<xs:simpleType>
												<xs:restriction base="xs:string">
													<xs:maxLength value="20"/>
												</xs:restriction>
											</xs:simpleType>
										</xs:element>
										<xs:element name="image" type="xs:base64Binary" nillable="true" minOccurs="0" maxOccurs="2">
											<xs:annotation>
												<xs:documentation>An  image of the dog in JPEG format, base64 encoded.  Images should only be provided for classified dogs.</xs:documentation>
											</xs:annotation>
										</xs:element>
									</xs:sequence>
								</xs:complexType>
							</xs:element>
							<xs:element name="destructionOrderDate" type="xs:date" nillable="true" minOccurs="0">
								<xs:annotation>
									<xs:documentation>The date that the order was made, if applicable</xs:documentation>
								</xs:annotation>
							</xs:element>
							<xs:element name="distinguishingMarks" nillable="true" minOccurs="0">
								<xs:annotation>
									<xs:documentation>Describing any distinguishing marks.</xs:documentation>
								</xs:annotation>
								<xs:simpleType>
									<xs:restriction base="xs:string">
										<xs:maxLength value="255"/>
									</xs:restriction>
								</xs:simpleType>
							</xs:element>
							<xs:element name="permanentIdentifier" nillable="true" minOccurs="0">
								<xs:annotation>
									<xs:documentation>Describing any tattoo or other permanent identification, including a freeze-brand.</xs:documentation>
								</xs:annotation>
								<xs:simpleType>
									<xs:restriction base="xs:string">
										<xs:maxLength value="255"/>
									</xs:restriction>
								</xs:simpleType>
							</xs:element>
							<xs:element name="otherTaRegistration" minOccurs="0">
								<xs:annotation>
									<xs:documentation>Details of a registration in another TA for this dog.  This information is used to link the dog records in the NDD</xs:documentation>
								</xs:annotation>
								<xs:complexType>
									<xs:sequence>
										<xs:element name="taCode" type="ndd:taCode">
											<xs:annotation>
												<xs:documentation>A code which uniquely identifies a Territorial Authority where another registration exists for the dog. Must contain a value selected from a standard list of TA codes</xs:documentation>
											</xs:annotation>
										</xs:element>
										<xs:element name="registrationYear" type="ndd:registrationYear">
											<xs:annotation>
												<xs:documentation>The registration year of the collar/label/disc assigned to the dog by the Territorial Authority where the other registration exists for the dog.</xs:documentation>
											</xs:annotation>
										</xs:element>
										<xs:element name="registrationNumber" type="ndd:taRegistrationNumber">
											<xs:annotation>
												<xs:documentation>The registration number (excluding the year) of the collar/label/disc assigned to the dog by the Territorial Authority where the other registration exists for the dog.</xs:documentation>
											</xs:annotation>
										</xs:element>
									</xs:sequence>
								</xs:complexType>
							</xs:element>
							<xs:element name="recordType" type="ndd:recordType"/>
						</xs:sequence>
					</xs:complexType>
				</xs:element>
				<xs:element name="owner" minOccurs="0" maxOccurs="unbounded">
					<xs:complexType>
						<xs:sequence>
							<xs:element name="taOwnerId" type="ndd:taOwnerId">
								<xs:annotation>
									<xs:documentation>The unique identifier assigned to the owner by the territorial authority's local system. This identifier must remain consistent throughout the life of the owner record so that the National Dog Database can track information held about the owner</xs:documentation>
								</xs:annotation>
							</xs:element>
							<xs:element name="safetyAlert" default="N">
								<xs:annotation>
									<xs:documentation>Indicates whether the local TA holds information on the owner relating to safety of the Animal Control Officer.</xs:documentation>
								</xs:annotation>
								<xs:simpleType>
									<xs:restriction base="xs:string">
										<xs:length value="1"/>
										<xs:enumeration value="Y"/>
										<xs:enumeration value="N"/>
									</xs:restriction>
								</xs:simpleType>
							</xs:element>
							<xs:element name="protectedStatus" default="N">
								<xs:annotation>
									<xs:documentation>Indicates whether this owner has protected status under the Domestic Violence Act</xs:documentation>
								</xs:annotation>
								<xs:simpleType>
									<xs:restriction base="xs:string">
										<xs:maxLength value="1"/>
										<xs:enumeration value="Y"/>
										<xs:enumeration value="N"/>
									</xs:restriction>
								</xs:simpleType>
							</xs:element>
							<xs:choice>
								<xs:element name="personDetail">
									<xs:complexType>
										<xs:sequence>
											<xs:element ref="xNLb:PersonName"/>
											<xs:element name="dateOfBirth" nillable="true" minOccurs="0">
												<xs:annotation>
													<xs:documentation>Owner’s date of birth. This element is considered mandatory under the Dog Control Act and should be supplied for every owner who is an individual (as opposed to an organisation).</xs:documentation>
												</xs:annotation>
												<xs:simpleType>
													<xs:restriction base="xs:date"/>
												</xs:simpleType>
											</xs:element>
										</xs:sequence>
									</xs:complexType>
								</xs:element>
								<xs:element ref="xNLb:OrganisationName"/>
							</xs:choice>
							<xs:element name="address" minOccurs="0" maxOccurs="2">
								<xs:complexType>
									<xs:sequence>
										<xs:element ref="xAL:AddressDetails"/>
									</xs:sequence>
								</xs:complexType>
							</xs:element>
							<xs:element name="classification" minOccurs="0">
								<xs:complexType>
									<xs:sequence>
										<xs:element name="classificationType">
											<xs:annotation>
												<xs:documentation>The type of owner classification. Must contain a code selected from a standard list</xs:documentation>
											</xs:annotation>
											<xs:simpleType>
												<xs:restriction base="xs:string">
													<xs:maxLength value="10"/>
												</xs:restriction>
											</xs:simpleType>
										</xs:element>
										<xs:element name="expiryDate" type="xs:date">
											<xs:annotation>
												<xs:documentation>The date on which the classification expires. This date should be in the future</xs:documentation>
											</xs:annotation>
										</xs:element>
										<xs:element name="classificationSection" nillable="true" minOccurs="0">
											<xs:annotation>
												<xs:documentation>Section/provision under which the classification was made. Must contain a value selected from a standard list</xs:documentation>
											</xs:annotation>
											<xs:simpleType>
												<xs:restriction base="xs:string">
													<xs:maxLength value="20"/>
												</xs:restriction>
											</xs:simpleType>
										</xs:element>
									</xs:sequence>
								</xs:complexType>
							</xs:element>
							<xs:element name="homePhone" nillable="true" minOccurs="0">
								<xs:annotation>
									<xs:documentation>The full home phone number of the owner, including the area code</xs:documentation>
								</xs:annotation>
								<xs:simpleType>
									<xs:restriction base="xs:string">
										<xs:maxLength value="20"/>
									</xs:restriction>
								</xs:simpleType>
							</xs:element>
							<xs:element name="workPhone" nillable="true" minOccurs="0">
								<xs:annotation>
									<xs:documentation>The full work phone number of the owner, including the area code.  May also include the extension if applicable e.g (04) 123 4567x123</xs:documentation>
								</xs:annotation>
								<xs:simpleType>
									<xs:restriction base="xs:string">
										<xs:maxLength value="20"/>
									</xs:restriction>
								</xs:simpleType>
							</xs:element>
							<xs:element name="mobilePhone" nillable="true" minOccurs="0">
								<xs:annotation>
									<xs:documentation>The full mobile phone number of the owner</xs:documentation>
								</xs:annotation>
								<xs:simpleType>
									<xs:restriction base="xs:string">
										<xs:maxLength value="20"/>
									</xs:restriction>
								</xs:simpleType>
							</xs:element>
							<xs:element name="emailAddress" nillable="true" minOccurs="0">
								<xs:annotation>
									<xs:documentation>The e-mail address of the owner</xs:documentation>
								</xs:annotation>
								<xs:simpleType>
									<xs:restriction base="xs:string">
										<xs:maxLength value="80"/>
									</xs:restriction>
								</xs:simpleType>
							</xs:element>
							<xs:element name="otherTaOwner" minOccurs="0">
								<xs:annotation>
									<xs:documentation>Details of an owner record in another TA for this owner.  This information is used to link the owner records in the NDD</xs:documentation>
								</xs:annotation>
								<xs:complexType>
									<xs:sequence>
										<xs:element name="taCode" type="ndd:taCode">
											<xs:annotation>
												<xs:documentation>A code which uniquely identifies a Territorial Authority where details of this are held. Must contain a value selected from a standard list of TA codes</xs:documentation>
											</xs:annotation>
										</xs:element>
										<xs:element name="taOwnerId" type="ndd:taOwnerId">
											<xs:annotation>
												<xs:documentation>The unique identifier assigned to this owner by the territorial authority where details of this owner are held.</xs:documentation>
											</xs:annotation>
										</xs:element>
									</xs:sequence>
								</xs:complexType>
							</xs:element>
							<xs:element name="recordType" type="ndd:recordType"/>
						</xs:sequence>
					</xs:complexType>
				</xs:element>
				<xs:element name="registration" minOccurs="0" maxOccurs="unbounded">
					<xs:complexType>
						<xs:sequence>
							<xs:element name="taDogId" type="ndd:taDogId">
								<xs:annotation>
									<xs:documentation>The unique identifier assigned to the dog by the territorial authority's local system</xs:documentation>
								</xs:annotation>
							</xs:element>
							<xs:element name="registrationDetail" minOccurs="0">
								<xs:annotation>
									<xs:documentation>Details of a valid registration in the sender TA. If these values are not supplied the dog will be treated as unregistered. No details of other TA's registrations should be included. No temporary registration details should be included.</xs:documentation>
								</xs:annotation>
								<xs:complexType>
									<xs:sequence>
										<xs:element name="registrationYear" type="ndd:registrationYear">
											<xs:annotation>
												<xs:documentation>Year that this registration record pertains to.</xs:documentation>
											</xs:annotation>
										</xs:element>
										<xs:element name="registrationNumber" type="ndd:taRegistrationNumber">
											<xs:annotation>
												<xs:documentation>The registration number (excluding the year) of the collar/label/disc assigned to the dog by the Territorial Authority for this registration year</xs:documentation>
											</xs:annotation>
										</xs:element>
									</xs:sequence>
								</xs:complexType>
							</xs:element>
							<xs:element name="taOwnerId" type="ndd:taOwnerId" maxOccurs="unbounded">
								<xs:annotation>
									<xs:documentation>The unique identifiers assigned to the owner(s) by the territorial authority's local system</xs:documentation>
								</xs:annotation>
							</xs:element>
							<xs:element name="recordType" type="ndd:recordType">
								<xs:annotation>
									<xs:documentation>Because there is no reliable primary key for registration (registration year and number being optional and subject to change in some systems) the NDD cannot apply updates or deletes to registrations. Accordingly, whenever a registration record is received it will be treated as superseding the previous one for the dog (regardless of the specified RECORD_TYPE). The history of previous registrations will be kept and displayed in the NDD.</xs:documentation>
								</xs:annotation>
							</xs:element>
						</xs:sequence>
					</xs:complexType>
				</xs:element>
				<xs:element name="infringement" minOccurs="0" maxOccurs="unbounded">
					<xs:complexType>
						<xs:sequence>
							<xs:element name="taOwnerId" type="ndd:taOwnerId">
								<xs:annotation>
									<xs:documentation>The unique identifiers assigned to the related owner by the territorial authority's local system</xs:documentation>
								</xs:annotation>
							</xs:element>
							<xs:element name="infringementNumber">
								<xs:annotation>
									<xs:documentation>The infringement number.  This is expected to be unique within a TA</xs:documentation>
								</xs:annotation>
								<xs:simpleType>
									<xs:restriction base="xs:decimal">
										<xs:totalDigits value="12"/>
										<xs:fractionDigits value="0"/>
									</xs:restriction>
								</xs:simpleType>
							</xs:element>
							<xs:element name="offenceDatetime" type="xs:dateTime" nillable="true" minOccurs="0">
								<xs:annotation>
									<xs:documentation>The date and time of the offence.  Only offences committed with the last 30 months should be included.</xs:documentation>
								</xs:annotation>
							</xs:element>
							<xs:element name="dateOrderedOrPaid" type="xs:date" nillable="true" minOccurs="0">
								<xs:annotation>
									<xs:documentation>The date on which the infringement has been paid or ordered by the Court to be paid.</xs:documentation>
								</xs:annotation>
							</xs:element>
							<xs:element name="actSection" nillable="true" minOccurs="0">
								<xs:annotation>
									<xs:documentation>The section of the Dog Control Act under which the infringement has been made. Must contain a value selected from the standard list as set out in Schedule 1 of the  Act. N.B. This is not the same as the precedent code.</xs:documentation>
								</xs:annotation>
								<xs:simpleType>
									<xs:restriction base="xs:string">
										<xs:maxLength value="20"/>
									</xs:restriction>
								</xs:simpleType>
							</xs:element>
							<xs:element name="taDogId" type="ndd:taDogId" nillable="true" minOccurs="0">
								<xs:annotation>
									<xs:documentation>The unique identifier assigned to the dog by the territorial authority's local system.  Applicable where the infringement involves a particular dog</xs:documentation>
								</xs:annotation>
							</xs:element>
							<xs:element name="recordType" type="ndd:recordType"/>
						</xs:sequence>
					</xs:complexType>
				</xs:element>
			</xs:sequence>
		</xs:complexType>
	</xs:element>
</xs:schema>
