<?xml version="1.0" encoding="UTF-8"?>
<xs:schema	xmlns:xs="http://www.w3.org/2001/XMLSchema"
				xmlns:prospect="http://rets.org/xsd/Prospects/2007-08"
				xmlns:commons="http://rets.org/xsd/RETSCommons/2007-08"
				xmlns:offices="http://rets.org/xsd/Offices/2007-08"
				xmlns:members="http://rets.org/xsd/Members/2007-08"
				targetNamespace="http://rets.org/xsd/Prospects/2007-08"
				elementFormDefault="qualified"
				attributeFormDefault="unqualified">

	<!--
		(C)2007 National Association of REALTORS(R)

		File History
		======================
		$Header: Prospects.xsd, 22, 10/8/2007 1:22:15 PM, Paul Stusiak$
		

		$Log:
		 22   055_RETS_Standard 1.21        10/8/2007 1:22:15 PM   Paul Stusiak
		      Update version timestamp
		 21   055_RETS_Standard 1.20        10/2/2007 2:11:08 PM   Gina Accawi
		      Put extension point on element declaration.
		 20   055_RETS_Standard 1.19        7/9/2007 12:37:03 PM   Paul Stusiak
		      Update versionTimestamp to 2007-07-09T19:21:00Z
		 19   055_RETS_Standard 1.18        7/2/2007 9:45:34 AM    Gina Accawi
		      Rename ResourceKey to be the actual ResourceNameKey.
		 18   055_RETS_Standard 1.17        6/29/2007 12:34:44 PM  Gina Accawi
		      Add a key for the resource.
		 17   055_RETS_Standard 1.16        6/26/2007 12:40:34 PM  Gina Accawi
		      Rename Agent to Member. This affects namespaces, element names, type
		      references, and attribute names.
		 16   055_RETS_Standard 1.15        5/2/2007 1:30:40 PM    Paul Stusiak
		      change namespace reference, use modified complex type name, update
		      version time stamp
		 15   055_RETS_Standard 1.14        4/3/2007 4:59:32 PM    Paul Stusiak
		      use url resolution for include, import to test schema validation
		 14   055_RETS_Standard 1.13        4/3/2007 1:44:10 AM    Paul Stusiak
		      change namespace to remote location (www.ftc2.com) for testing
		 13   055_RETS_Standard 1.12        4/2/2007 11:26:57 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:07 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 1:51:18 AM   Paul Stusiak
		      change namespace to match filename. minor formatting.
		 10   055_RETS_Standard 1.9         3/21/2007 1:48:39 AM   Paul Stusiak
		      change filename to match the global element name
		 9    055_RETS_Standard 1.8         3/7/2007 11:01:36 PM   Paul Stusiak
		      Clean up the project information for the purposes of document
		      generation. Change namespace to correctly reference Agents rather than
		       Agency.
		 8    055_RETS_Standard 1.7         2/28/2007 1:07:36 AM   Paul Stusiak
		      add standard header
		 7    055_RETS_Standard 1.6         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
		 6    055_RETS_Standard 1.5         11/28/2006 1:41:33 AM  Paul Stusiak
		      updated version per meetings
		 5    055_RETS_Standard 1.4         7/31/2006 9:26:03 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
		 4    055_RETS_Standard 1.3         4/7/2006 7:36:40 PM    Jeff Brush
		      renamed version attribute to versionTimestamp for schema versioning
		 3    055_RETS_Standard 1.2         4/7/2006 1:37:41 PM    Jeff Brush
		      modified to have schema versioning as datetime, add year month to
		      namespaces, minor corrections
		 2    055_RETS_Standard 1.1         4/4/2006 8:05:59 AM    Jeff Brush
		      Updated schemas.  All MLS schemas have extensibility points.  New
		      ObjectReferenceList.xsd
		 1    055_RETS_Standard 1.0         3/6/2006 8:13:39 AM    Paul Stusiak    
		$
		======================
	-->

	<xs:annotation>
		<xs:documentation>
			Elements related to the Lead Prospecting.

		</xs:documentation>
	</xs:annotation>

	<xs:import	namespace="http://rets.org/xsd/Offices/2007-08"
					schemaLocation="../../../xsd/Offices/2007-08/Offices.xsd"/>
	<xs:import	namespace="http://rets.org/xsd/Members/2007-08"
					schemaLocation="../../../xsd/Members/2007-08/Members.xsd"/>
	<xs:import	namespace="http://rets.org/xsd/RETSCommons/2007-08"
					schemaLocation="../../../xsd/RETSCommons/2007-08/RETSCommons.xsd"/>

	<!-- Types -->
	<xs:simpleType name="ProspectID">
		<xs:restriction base="xs:string"/>
	</xs:simpleType>
	<xs:simpleType name="PublicName">
		<xs:restriction base="xs:string"/>
	</xs:simpleType>
	<xs:complexType name="Prospect">
		<xs:sequence>
			<xs:element name="ProspectKey"
							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="ProspectID"
							type="prospect:ProspectID"
							minOccurs="0"/>
			<xs:element	name="PublicName"
							type="prospect:PublicName"
							minOccurs="0"/>
			<xs:element	name="Resource"
							type="commons:ResourceName"
							minOccurs="0"/>
			<xs:element	name="Query"
							type="commons:Query"
							minOccurs="0"/>
			<xs:element	name="Member"
							type="members:MemberType"
							minOccurs="0"/>
			<xs:element	name="Office"
							type="offices:OfficeType"
							minOccurs="0"/>
			<xs:element	name="ModificationTimestamp"
							type="commons:ModificationTimestamp"
							minOccurs="0"/>
			<xs:element	name="UsedTimestamp"
							type="commons:UsedTimestamp"
							minOccurs="0"/>
			<xs:any		namespace="##other"
							minOccurs="0"
							maxOccurs="unbounded"/>
		</xs:sequence>
	</xs:complexType>

	<!-- Elements -->
	<xs:element name="Prospects">
		<xs:complexType>
			<xs:sequence>
				<xs:element	name="Prospect"
								type="prospect:Prospect"
								minOccurs="0"
								maxOccurs="unbounded"/>
			</xs:sequence>
			<xs:attribute	name="versionTimestamp"
								type="xs:dateTime"
								use="required"
								fixed="2007-07-09T19:21:00Z"/>
		</xs:complexType>
	</xs:element>
</xs:schema>
