<?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: AssociationMemberRecords.xsd, 26, 10/8/2007 1:22:10 PM, Paul Stusiak$
		

		$Log:
		 26   055_RETS_Standard 1.25        10/8/2007 1:22:10 PM   Paul Stusiak
		      Update version timestamp
		 25   055_RETS_Standard 1.24        10/2/2007 2:33:07 PM   Gina Accawi
		      Rename ContactMethod to ContactMethods. Add values to the
		      PhoneTypeEnum.
		 24   055_RETS_Standard 1.23        7/24/2007 10:41:25 PM  Paul Stusiak
		      Rename to AssociationMemberType
		 23   055_RETS_Standard 1.22        7/24/2007 12:58:17 PM  Paul Stusiak
		      Changes to consolidate on Association namespace and naming pattern.
		 22   055_RETS_Standard 1.21        7/24/2007 9:41:15 AM   Paul Stusiak
		      renamed
		 21   055_RETS_Standard 1.20        7/9/2007 12:37:04 PM   Paul Stusiak
		      Update versionTimestamp to 2007-07-09T19:21:00Z
		 20   055_RETS_Standard 1.19        7/6/2007 2:29:44 PM    Gina Accawi
		      Rename ids.
		 19   055_RETS_Standard 1.18        7/5/2007 2:27:02 PM    Gina Accawi
		      Remove addresses, as they are now in the ContactMethod.
		 18   055_RETS_Standard 1.17        6/26/2007 1:05:13 PM   Gina Accawi
		      Rename ContactInformation to ContactMethod.
		 17   055_RETS_Standard 1.16        6/13/2007 12:43:33 PM  Gina Accawi
		      Indicate NRDSCommons items by renaming elements to include NRDS in the
		       name. As per May meeting suggestion in Rockville.
		 16   055_RETS_Standard 1.15        5/2/2007 1:17:35 PM    Paul Stusiak
		      change namespace reference, clean up some comments, update version
		      time stamp
		 15   055_RETS_Standard 1.14        4/3/2007 4:59:30 PM    Paul Stusiak
		      use url resolution for include, import to test schema validation
		 14   055_RETS_Standard 1.13        4/3/2007 1:43:57 AM    Paul Stusiak
		      change namespace to remote location (www.ftc2.com) for testing
		 13   055_RETS_Standard 1.12        4/2/2007 11:26:56 AM   Paul Stusiak
		      change namespace to match responding server and to use the URI
		      versioning suggested by both HP and XFront
		 12   055_RETS_Standard 1.11        3/30/2007 6:20:40 PM   Paul Stusiak
		      Update of the versionTimestamp and the namespace (namespace to
		      200704). Change formating to a standard format
		 11   055_RETS_Standard 1.10        3/21/2007 12:57:44 AM  Paul Stusiak
		      change namespace to match the filename. modify the version to be
		      consistent with the other versionTimestamp elements
		 10   055_RETS_Standard 1.9         3/21/2007 12:54:31 AM  Paul Stusiak
		      change filename to match global element name
		 9    055_RETS_Standard 1.8         3/19/2007 9:13:18 PM   Paul Stusiak
		      Fix element name mispelling
		 8    055_RETS_Standard 1.7         3/7/2007 10:51:44 PM   Paul Stusiak
		      Clean up the project information for the purposes of document
		      generation.
		 7    055_RETS_Standard 1.6         3/6/2007 12:27:43 PM   Paul Stusiak
		      change ID to Id across files, added header used primitive 'Person' and
		       'AssociationMemberId' and 'AssociationOfficeId' types and minor
		      cleanup
		 6    055_RETS_Standard 1.5         2/22/2007 3:34:49 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:06 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:45 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         7/31/2006 9:26:02 AM   Jeff Brush
		      updated schemas to have child element of minOccurs="0" allowing for
		      empty root element to be returned in cases where the search results
		      are empty
		 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:07 AM    Jeff Brush
		      Updated schemas.  All MLS schemas have extensibility points.  New
		      ObjectReferenceList.xsd
		$
		======================
		Description or Purpose
	-->

	<xs:annotation>
		<xs:documentation>
			Elements related to membership or association
			information.
		</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="MemberRecord">
		<xs:sequence>
			<xs:element	name="Person"
							type="commons:Person"
							minOccurs="0"/>
			<xs:element	name="MemberId"
							type="commons:AssociationMemberId"
							minOccurs="0"/>
			<xs:element	name="NRDSMemberSSN"
							type="nrds:MemberSSN"
							minOccurs="0"/>
			<xs:element	name="NRDSMemberBirthDate"
							type="nrds:MemberBirthDate"
							minOccurs="0"/>
			<xs:element	name="NRDSJoinedDate"
							type="nrds:JoinedDate"
							minOccurs="0"/>
			<xs:element	name="NRDSLocalJoinedDate"
							type="nrds:JoinedDate"
							minOccurs="0"/>
			<xs:element	name="NRDSOrientationDate"
							type="nrds:MemberOrientationDate"
							minOccurs="0"/>
			<xs:element	name="NRDSReinstatmentDate"
							type="nrds:JoinedDate"
							minOccurs="0"/>
			<xs:element	name="ContactMethods"
							type="commons:ContactMethods"
							minOccurs="0"/>
			<xs:element	name="NRDSPreferredMail"
							type="nrds:MemberPreferredMail"
							minOccurs="0"/>
			<xs:element	name="NRDSPreferredPublication"
							type="nrds:MemberPreferredPublication"
							minOccurs="0"/>
			<xs:element	name="NRDSMemberType"
							type="nrds:AssociationMemberType"
							minOccurs="0"/>
			<xs:element	name="NRDSPrimaryIndicator"
							type="nrds:PrimaryIndicator"
							minOccurs="0"/>
			<xs:element	name="NRDSStatusCode"
							type="nrds:MemberStatus"
							minOccurs="0"/>
			<xs:element	name="NRDSStatusDate"
							type="nrds:StatusDate"
							minOccurs="0"/>
			<xs:element	name="NRDSOnlineStatus"
							type="nrds:OnlineStatus"
							minOccurs="0"/>
			<xs:element	name="NRDSOnlineStatusDate"
							type="nrds:OnlineStatusDate"
							minOccurs="0"/>
			<xs:element	name="NRDSRealEstateLicense"
							type="nrds:RealEstateLicense"
							minOccurs="0"/>
			<xs:element	name="NRDSDues"
							type="nrds:Dues"
							minOccurs="0"/>
			<xs:element	name="NRDSArbitrationEthicsPending"
							type="nrds:ArbitrationEthicsPending"
							minOccurs="0"/>
			<xs:element	name="NRDSPrimaryAssociationId"
							type="nrds:AssociationId"
							minOccurs="0"/>
			<xs:element	name="NRDSPrimaryStateAssociationId"
							type="nrds:AssociationId"
							minOccurs="0"/>
			<xs:element	name="NRDSMLSAssociationId"
							type="nrds:MLSAssociationId"
							minOccurs="0"/>
			<xs:element	name="NRDSMLSNumber"
							type="nrds:MLSNumber"
							minOccurs="0"/>
			<xs:element	name="NRDSOfficeId"
							type="commons:AssociationOfficeId"
							minOccurs="0"/>
			<xs:element	name="OfficeName"
							type="commons:OfficeName"
							minOccurs="0"/>
		</xs:sequence>
		<xs:attribute name="memberRecordId"
							type="xs:string"
							use="required"/>
	</xs:complexType>
	<xs:complexType name="MemberRecords">
		<xs:sequence>
			<xs:element	name="MemberRecord"
							type="assc:MemberRecord"
							minOccurs="0"
							maxOccurs="unbounded"/>
		</xs:sequence>
		<xs:attribute	name="versionTimestamp"
							type="xs:dateTime"
							use="required"
							fixed="2007-10-08T16:27:23Z"/>
	</xs:complexType>

	<!-- Elements -->
	<xs:element	name="AssociationMemberRecords"
					type="assc:MemberRecords"/>
</xs:schema>