<?xml version="1.0" encoding="UTF-8"?>
<xs:schema	xmlns:xs="http://www.w3.org/2001/XMLSchema"
				xmlns:assc="http://rets.org/xsd/Associations/2007-08"
				xmlns:commons="http://rets.org/xsd/RETSCommons/2007-08"
				xmlns:nrds="http://rets.org/xsd/NRDSCommons/2007-08"
				targetNamespace="http://rets.org/xsd/Associations/2007-08"
				elementFormDefault="qualified"
				attributeFormDefault="unqualified">

	<!--
		(C)2007 National Association of REALTORS(R)

		Tab stops
		:set ts=3

		File History
		======================
		$Header: Associations.xsd, 27, 10/8/2007 1:22:11 PM, Paul Stusiak$
		
		$Log:
		 27   055_RETS_Standard 1.26        10/8/2007 1:22:11 PM   Paul Stusiak
		      Update version timestamp
		 26   055_RETS_Standard 1.25        10/2/2007 2:33:08 PM   Gina Accawi
		      Rename ContactMethod to ContactMethods. Add values to the
		      PhoneTypeEnum.
		 25   055_RETS_Standard 1.24        7/27/2007 9:44:00 AM   Gina Accawi
		      Modify documentation, pull from NRDSCommons for association id.
		 24   055_RETS_Standard 1.23        7/9/2007 12:37:06 PM   Paul Stusiak
		      Update versionTimestamp to 2007-07-09T19:21:00Z
		 23   055_RETS_Standard 1.22        7/5/2007 2:25:50 PM    Gina Accawi
		      Remove addresses, as they are now in the ContactMethod.
		 22   055_RETS_Standard 1.21        7/2/2007 9:45:27 AM    Gina Accawi
		      Rename ResourceKey to be the actual ResourceNameKey.
		 21   055_RETS_Standard 1.20        6/29/2007 12:34:37 PM  Gina Accawi
		      Add a key for the resource.
		 20   055_RETS_Standard 1.19        6/26/2007 1:05:11 PM   Gina Accawi
		      Rename ContactInformation to ContactMethod.
		 19   055_RETS_Standard 1.18        6/13/2007 12:39:02 PM  Gina Accawi
		      Indicate NRDSCommons items by renaming elements to include NRDS in the
		       name. As per May meeting suggestion in Rockville.
		 18   055_RETS_Standard 1.17        5/1/2007 2:10:45 PM    Paul Stusiak
		      Update the version timestamp, make the schema relative again,
		      normalize the date related typing to use SecureDateTime and naming to
		      be of the form XXXDateTime
		 17   055_RETS_Standard 1.16        4/3/2007 4:59:27 PM    Paul Stusiak
		      use url resolution for include, import to test schema validation
		 16   055_RETS_Standard 1.15        4/3/2007 1:43:55 AM    Paul Stusiak
		      change namespace to remote location (www.ftc2.com) for testing
		 15   055_RETS_Standard 1.14        4/2/2007 11:26:53 AM   Paul Stusiak
		      change namespace to match responding server and to use the URI
		      versioning suggested by both HP and XFront
		 14   055_RETS_Standard 1.13        3/30/2007 6:20:19 PM   Paul Stusiak
		      Update of the versionTimestamp and the namespace (namespace to
		      200704). Change formating to a standard format
		 13   055_RETS_Standard 1.12        3/21/2007 2:05:15 AM   Paul Stusiak
		      fix missing closing element tag
		 12   055_RETS_Standard 1.11        3/20/2007 9:56:54 PM   Paul Stusiak
		      minor formatting change, change namespace to match filename
		 11   055_RETS_Standard 1.10        3/20/2007 9:47:11 PM   Paul Stusiak
		      change filename to match global element name
		 10   055_RETS_Standard 1.9         3/20/2007 9:41:20 AM   Gina Accawi
		      Add annotation. Restore top-level type.
		 9    055_RETS_Standard 1.8         3/8/2007 11:12:00 AM   Gina Accawi
		      Change root element from a global type reference to a local anonymous
		      definition. This will be the pattern for all container (root)
		      elements. Change version attribute to versionTimestamp on the root.
		 8    055_RETS_Standard 1.7         3/7/2007 10:46:33 PM   Paul Stusiak
		      Clean up the project information for the purposes of document
		      generation.
		 7    055_RETS_Standard 1.6         2/28/2007 12:35:10 AM  Paul Stusiak
		      add standard header
		 6    055_RETS_Standard 1.5         2/22/2007 3:34:45 PM   Gina Accawi
		      Remove all references to the schemaLocation as being
		      http://retsserver.realtors.org:8080/xsd/.  These references have been
		      changed to be relative path (as the current directory). Now,
		      regardless of where they are published, the referential internal
		      integrity will remain. The assumption is that these will all reside as
		       neighbors on the target distribution server.
		 5    055_RETS_Standard 1.4         12/20/2006 12:31:04 PM Jeff Brush
		      added retsserver location back to imports;  renamed Prospect to
		      SavedQuery; changed ListingHistory to track only select fields
		      identified by workgroup;renamed Agency to Agents and fixed references
		      in other schemas;changed TotalSqFeet references to TotalArea; per 12/7
		       MLS payload workgroup meeting
		 4    055_RETS_Standard 1.3         12/2/2006 1:12:44 AM   Paul Stusiak
		      various mechanical fixes tho the schema and a re-direct from
		      retsserver.realtors.org to www.ftc2.com
		 3    055_RETS_Standard 1.2         9/20/2006 12:43:24 PM  Jeff Brush
		      chgd schemaLocation to point to http://retsserver.rets.org:8080/xsd/
		 2    055_RETS_Standard 1.1         4/8/2006 7:16:20 PM    Jeff Brush
		      Added Version/Date to schema URI
		 1    055_RETS_Standard 1.0         4/4/2006 8:06:05 AM    Jeff Brush
		      Updated schemas.  All MLS schemas have extensibility points.  New
		      ObjectReferenceList.xsd
		$
		======================
		Description or Purpose
	-->

	<xs:annotation>
		<xs:documentation>
			TBD
		</xs:documentation>
	</xs:annotation>

	<xs:import	namespace="http://rets.org/xsd/RETSCommons/2007-08"
					schemaLocation="../../../xsd/RETSCommons/2007-08/RETSCommons.xsd"/>
	<xs:import	namespace="http://rets.org/xsd/NRDSCommons/2007-08"
					schemaLocation="../../../xsd/NRDSCommons/2007-08/NRDSCommons.xsd"/>

	<!-- Types -->
	<xs:complexType name="Association">
		<xs:sequence>
			<xs:element name="AssociationKey"
							type="commons:resource-key"
							minOccurs="1"
							maxOccurs="1">
				<xs:annotation>
					<xs:documentation>
						This the is the keyfield for the resource.
					</xs:documentation>
				</xs:annotation>				
			</xs:element>
			<xs:element	name="NRDSAssociationId"
							type="nrds:MLSAssociationId"
							minOccurs="0">
				<xs:annotation>
					<xs:documentation>
						An identifier of the regional MLS.
						NRDS expects a valid, unique 4 digit number.
					</xs:documentation>
					<xs:appinfo>
						4321
					</xs:appinfo>
				</xs:annotation>
			</xs:element>
			<xs:element	name="NRDSAssociationType"
							type="nrds:AssociationType"
							minOccurs="0"/>
			<xs:element	name="NRDSAssociationName"
							type="nrds:AssociationName"
							minOccurs="0"/>
			<xs:element	name="ContactMethods"
							type="commons:ContactMethods"
							minOccurs="0"/>
			<xs:element	name="NRDSExecutiveOfficerInformation"
							type="nrds:AssociationExecutiveOfficerInfo"
							minOccurs="0"/>
			<xs:element	name="NRDSPointOfEntry"
							type="nrds:PointOfEntry"
							minOccurs="0"/>
			<xs:element	name="NRDSStatusCode"
							type="nrds:AssociationStatus"
							minOccurs="0"/>
			<xs:element	name="StatusChangeDateTime"
							type="commons:SecureDateTime"
							minOccurs="0">
				<xs:annotation>
					<xs:documentation>
						Datetime that the status of the Association
						changed.
					</xs:documentation>
					<xs:appinfo>
						2007-03-10T12:00:00-05:00
					</xs:appinfo>
				</xs:annotation>
			</xs:element>
			<xs:element	name="NRDSLastCertificationDate" 
							type="nrds:AssociationLastCertificationDate"
							minOccurs="0"/>
			<xs:element	name="NRDSAssociationOfficers"
							type="nrds:AssociationOfficers"
							minOccurs="0"/>
		</xs:sequence>
	</xs:complexType>
	<xs:complexType name="Associations">
		<xs:sequence>
			<xs:element	name="Association"
							type="assc:Association"
							minOccurs="0"/>
		</xs:sequence>
		<xs:attribute	name="versionTimestamp"
							type="xs:dateTime"
							use="required"
							fixed="2007-10-08T16:27:23Z">
		</xs:attribute>
	</xs:complexType>

	<!-- Elements -->
	<xs:element	name="Associations"
					type="assc:Associations"/>
</xs:schema>