<?xml version="1.0" encoding="UTF-8"?>
<xs:schema	xmlns:xs="http://www.w3.org/2001/XMLSchema"
				xmlns:record="http://rets.org/xsd/PublicRecords/2007-08"
				xmlns:commons="http://rets.org/xsd/RETSCommons/2007-08"
				targetNamespace="http://rets.org/xsd/PublicRecords/2007-08"
				elementFormDefault="qualified"
				attributeFormDefault="unqualified">

	<!--
		Tab stops
		:set ts=3
		
		File History
		======================
		$Header: PublicRecords.xsd, 33, 7/26/2007 7:17:38 PM, Paul Stusiak$
		
		$Log:
		 33   055_RETS_Standard1.32        7/26/2007 7:17:38 PM   Paul Stusiak
		      Remove unused complexTypes
		 32   055_RETS_Standard1.31        7/26/2007 2:15:16 PM   Paul Stusiak    Add
		       systemId
		 31   055_RETS_Standard1.30        7/26/2007 1:08:03 PM   Gina Accawi     Add
		       parcel number to tax info from geographic data in commons.
		 30   055_RETS_Standard1.29        7/24/2007 10:46:30 PM  Paul Stusiak    use
		       boundedCardinalInteger to avoid code generation use of BigDecimal;
		      replace Owner, Seller, Buyer with ContactablePerson; use YearBuiltType
		 29   055_RETS_Standard1.28        7/24/2007 1:00:33 PM   Gina Accawi     Add
		       keys.
		 28   055_RETS_Standard1.27        7/24/2007 12:41:16 PM  Gina Accawi
		      Remove local Mortgage type definition.
		 27   055_RETS_Standard1.26        7/24/2007 11:51:45 AM  Gina Accawi
		      Remove PIN.
		 26   055_RETS_Standard1.25        7/9/2007 12:37:05 PM   Paul Stusiak
		      Update versionTimestamp to 2007-07-09T19:21:00Z
		 25   055_RETS_Standard1.24        7/4/2007 6:47:26 PM    Paul Stusiak    fix
		       for cr 45 following an unsuccessful check in of change.
		 24   055_RETS_Standard1.23        7/3/2007 12:59:00 AM   Paul Stusiak
		      Change names of lotacreage and pricepersqft to have units and currency
		       attributes and change the name to be units neutral.
		 23   055_RETS_Standard1.22        7/3/2007 12:47:06 AM   Paul Stusiak
		      remove redundant types and update version timestamp
		 22   055_RETS_Standard1.21        6/26/2007 11:59:42 AM  Gina Accawi
		      Rename items that are TotalBlah to BlahTotal for consistency
		      throughout.
		 21   055_RETS_Standard1.20        6/25/2007 3:31:11 PM   Gina Accawi
		      Rename TotalBlah to BlahTotal. Remove reference to custom total count
		      types. 
		 20   055_RETS_Standard1.19        5/2/2007 1:31:14 PM    Paul Stusiak
		      change complex type names to resolve code generation errors.
		 19   055_RETS_Standard1.18        5/1/2007 4:16:18 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
		 18   055_RETS_Standard1.17        4/3/2007 4:59:32 PM    Paul Stusiak    use
		       url resolution for include, import to test schema validation
		 17   055_RETS_Standard1.16        4/3/2007 1:44:10 AM    Paul Stusiak
		      change namespace to remote location (www.ftc2.com) for testing
		 16   055_RETS_Standard1.15        4/2/2007 11:26:58 AM   Paul Stusiak
		      change namespace to match responding server and to use the URI
		      versioning suggested by both HP and XFront
		 15   055_RETS_Standard1.14        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
		 14   055_RETS_Standard1.13        3/8/2007 12:23:53 PM   Paul Stusiak
		      Change PublicRecord -> PublicRecords namespace reference. Formatting
		      change for readability. Added placeholders for documentation
		 13   055_RETS_Standard1.12        3/8/2007 10:49:34 AM   Paul Stusiak
		      Rename to correctly reflect the root element.
		 12   055_RETS_Standard1.11        3/7/2007 11:01:54 PM   Paul Stusiak
		      Clean up the project information for the purposes of document
		      generation.
		 11   055_RETS_Standard1.10        3/6/2007 2:02:06 PM    Paul Stusiak
		      Added header with tab stop information, clean up, use Primitives fix
		      element BasementSqFeet -> BasementArea and BuildingSqFeet ->
		      BuildingArea.
		 10   055_RETS_Standard1.9         2/22/2007 3:34:54 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.
		 9    055_RETS_Standard1.8         2/22/2007 12:20:08 PM  Paul Stusiak
		      From 2006-12-29 Paula O'Brien - change Water, Sewer elements to
		      Utilites
		      From 2007-02-22 Paul Stusiak - minor format change, check in missing
		      2006-12-29 change
		 8    055_RETS_Standard1.7         12/20/2006 12:31:09 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
		 7    055_RETS_Standard1.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_Standard1.5         11/28/2006 1:41:33 AM  Paul Stusiak
		      updated version per meetings
		 5    055_RETS_Standard1.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_Standard1.3         4/7/2006 7:36:40 PM    Jeff Brush
		      renamed version attribute to versionTimestamp for schema versioning
		 3    055_RETS_Standard1.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_Standard1.1         4/4/2006 8:05:59 AM    Jeff Brush
		      Updated schemas.  All MLS schemas have extensibility points.  New
		      ObjectReferenceList.xsd
		 1    055_RETS_Standard1.0         3/6/2006 8:13:40 AM    Paul Stusiak    
		$
		======================
	-->

	<xs:annotation>
		<xs:documentation>
			Public Record of a Property. 
		</xs:documentation>
	</xs:annotation>

	<xs:import  namespace="http://www.w3.org/XML/1998/namespace"
					schemaLocation="http://www.w3.org/2001/xml.xsd"/>
	<xs:import	namespace="http://rets.org/xsd/RETSCommons/2007-08"
					schemaLocation="../../../xsd/RETSCommons/2007-08/RETSCommons.xsd"/>

	<!-- Types -->
	<xs:complexType	name="RecordingDate">
		<xs:annotation>
			<xs:documentation>
				TODO 
			</xs:documentation>
		</xs:annotation>
		<xs:simpleContent>
			<xs:extension base="commons:SecureDateTime"/>
		</xs:simpleContent>
	</xs:complexType>
	<xs:complexType	name="StateUse">
		<xs:annotation>
			<xs:documentation>
				TODO 
			</xs:documentation>
		</xs:annotation>
		<xs:simpleContent>
			<xs:extension base="commons:SecureString"/>
		</xs:simpleContent>
	</xs:complexType>
	<xs:complexType	name="UniversalLandUse">
		<xs:annotation>
			<xs:documentation>
				TODO 
			</xs:documentation>
		</xs:annotation>
		<xs:simpleContent>
			<xs:extension base="commons:SecureString"/>
		</xs:simpleContent>
	</xs:complexType>
	<xs:complexType	name="FloodZonePanel">
		<xs:annotation>
			<xs:documentation>
				TODO 
			</xs:documentation>
		</xs:annotation>
		<xs:simpleContent>
			<xs:extension base="commons:SecureString"/>
		</xs:simpleContent>
	</xs:complexType>
	<xs:complexType	name="FloodZoneDate">
		<xs:annotation>
			<xs:documentation>
				TODO 
			</xs:documentation>
		</xs:annotation>
		<xs:simpleContent>
			<xs:extension base="commons:SecureDateTime"/>
		</xs:simpleContent>
	</xs:complexType>
	<xs:complexType	name="FloodZoneCode">
		<xs:annotation>
			<xs:documentation>
				TODO 
			</xs:documentation>
		</xs:annotation>
		<xs:simpleContent>
			<xs:extension base="commons:SecureString"/>
		</xs:simpleContent>
	</xs:complexType>
	<xs:complexType	name="TaxYear">
		<xs:annotation>
			<xs:documentation>
				TODO 
			</xs:documentation>
		</xs:annotation>
		<xs:simpleContent>
			<xs:extension base="commons:SecureYear"/>
		</xs:simpleContent>
	</xs:complexType>
	<xs:complexType	name="AssessmentYear">
		<xs:annotation>
			<xs:documentation>
				TODO 
			</xs:documentation>
		</xs:annotation>
		<xs:simpleContent>
			<xs:extension base="commons:SecureYear"/>
		</xs:simpleContent>
	</xs:complexType>
	<xs:complexType	name="AnnualTax">
		<xs:annotation>
			<xs:documentation>
				TODO 
			</xs:documentation>
		</xs:annotation>
		<xs:simpleContent>
			<xs:extension base="commons:SecureMoney"/>
		</xs:simpleContent>
	</xs:complexType>
	<xs:complexType	name="LandAssessment">
		<xs:annotation>
			<xs:documentation>
				TODO 
			</xs:documentation>
		</xs:annotation>
		<xs:simpleContent>
			<xs:extension base="commons:SecureMoney"/>
		</xs:simpleContent>
	</xs:complexType>
	<xs:complexType	name="ImprovedAssessment">
		<xs:annotation>
			<xs:documentation>
				TODO 
			</xs:documentation>
		</xs:annotation>
		<xs:simpleContent>
			<xs:extension base="commons:SecureMoney"/>
		</xs:simpleContent>
	</xs:complexType>
	<xs:complexType	name="AssessmentTotal">
		<xs:annotation>
			<xs:documentation>
				TODO 
			</xs:documentation>
		</xs:annotation>
		<xs:simpleContent>
			<xs:extension base="commons:SecureMoney"/>
		</xs:simpleContent>
	</xs:complexType>
	<xs:complexType	name="PercentImproved">
		<xs:annotation>
			<xs:documentation>
				TODO 
			</xs:documentation>
		</xs:annotation>
		<xs:simpleContent>
			<xs:extension base="commons:SecureDecimal"/>
		</xs:simpleContent>
	</xs:complexType>
	<xs:complexType	name="TaxArea">
		<xs:annotation>
			<xs:documentation>
				TODO 
			</xs:documentation>
		</xs:annotation>
		<xs:simpleContent>
			<xs:extension base="commons:SecureString"/>
		</xs:simpleContent>
	</xs:complexType>
	<xs:complexType	name="TaxAppraisalArea" >
		<xs:annotation>
			<xs:documentation>
				TODO 
			</xs:documentation>
		</xs:annotation>
		<xs:simpleContent>
			<xs:extension base="commons:SecureString"/>
		</xs:simpleContent>
	</xs:complexType>
	<xs:complexType	name="LotNumber">
		<xs:annotation>
			<xs:documentation>
				TODO 
			</xs:documentation>
		</xs:annotation>
		<xs:simpleContent>
			<xs:extension base="commons:SecureString"/>
		</xs:simpleContent>
	</xs:complexType>
	<xs:complexType	name="PricePerUnitArea">
		<xs:annotation>
			<xs:documentation>
			</xs:documentation>
		</xs:annotation>
		<xs:simpleContent>
			<xs:extension base="commons:SecurePricedUnitArea"/>
		</xs:simpleContent>
	</xs:complexType>
	<xs:complexType	name="DeedType">
		<xs:annotation>
			<xs:documentation>
				TODO 
			</xs:documentation>
		</xs:annotation>
		<xs:simpleContent>
			<xs:extension base="commons:SecureString"/>
		</xs:simpleContent>
	</xs:complexType>
	<xs:complexType	name="LotArea">
		<xs:annotation>
			<xs:documentation>
				TODO
			</xs:documentation>
		</xs:annotation>
		<xs:simpleContent>
			<xs:extension base="commons:SecureArea"/>
		</xs:simpleContent>
	</xs:complexType>
	<xs:complexType	name="Sales">
		<xs:sequence>
			<xs:element	name="RecordingDate"
							type="record:RecordingDate"
							minOccurs="0"/>
			<xs:element	name="Price"
							type="commons:SecureMoney"
							minOccurs="0"/>
			<xs:element	name="Buyers" 
							type="record:Buyers"
							minOccurs="0"/>
			<xs:element	name="Sellers"
							type="record:Sellers"
							minOccurs="0"/>
			<xs:element	name="DocumentType"
							type="commons:DocumentType"
							minOccurs="0"/>
		</xs:sequence>
	</xs:complexType>
	<xs:complexType	name="History">
		<xs:sequence>
			<xs:element	name="Sales"
							type="record:Sales"
							minOccurs="0"
							maxOccurs="unbounded"/>
			<xs:element	name="Mortgage"
							type="commons:Mortgage"
							minOccurs="0"
							maxOccurs="unbounded"/>
		</xs:sequence>
	</xs:complexType>
	<xs:complexType	name="FloodZone">
		<xs:sequence>
			<xs:element	name="Panel"
							type="record:FloodZonePanel"
							minOccurs="0"/>
			<xs:element	name="PanelDate"
							type="record:FloodZoneDate"
							minOccurs="0"/>
			<xs:element	name="Code"
							type="record:FloodZoneCode"
							minOccurs="0"/>
		</xs:sequence>
	</xs:complexType>
	<xs:complexType	name="LastMarketSale">
		<xs:sequence>
			<xs:element	name="RecordingDate"
							type="record:RecordingDate"
							minOccurs="0"/>
			<xs:element	name="Price"
							type="commons:SecureMoney"
							minOccurs="0"/>
			<xs:element	name="DeedType"
							type="record:DeedType"
							minOccurs="0"/>
			<xs:element	name="Owners"
							type="record:ParcelOwners"
							minOccurs="0"/>
		</xs:sequence>
	</xs:complexType>
	<xs:complexType	name="ParcelLocation">
		<xs:sequence>
			<xs:element	name="Address"
							type="commons:Address"
							minOccurs="0"/>
			<xs:element	name="MailingAddress"
							type="commons:MailingAddress"
							minOccurs="0"/>
		</xs:sequence>
	</xs:complexType>
	<xs:complexType	name="ParcelOwner">
		<xs:sequence>
			<xs:element	name="OwnersName"
							type="commons:ContactablePerson"
							minOccurs="0"/>
			<xs:element	name="OwnershipType"
							type="commons:OwnershipType"
							minOccurs="0"/>
		</xs:sequence>
	</xs:complexType>
	<xs:complexType	name="ParcelOwners">
		<xs:sequence>
			<xs:element	name="Owner"
							type="record:ParcelOwner"
							minOccurs="0"
							maxOccurs="unbounded"/>
		</xs:sequence>
	</xs:complexType>
	<xs:complexType	name="OwnerInformation">
		<xs:sequence>
			<xs:element	name="Owners"
							type="record:ParcelOwners"
							minOccurs="0"/>
			<xs:element	name="TaxAddress"
							type="commons:Address"
							minOccurs="0"/>
			<xs:element	name="AnnualTax"
							type="record:AnnualTax"
							minOccurs="0"/>
			<xs:element	name="StateUse"
							type="record:StateUse"
							minOccurs="0"/>
			<xs:element	name="UniversalLandUse"
							type="record:UniversalLandUse"
							minOccurs="0"/>
		</xs:sequence>
	</xs:complexType>
	<xs:complexType name="Sellers">
		<xs:sequence>
			<xs:element	name="Seller"
							type="commons:ContactablePerson"
							minOccurs="0"
							maxOccurs="unbounded"/>
		</xs:sequence>
	</xs:complexType>
	<xs:complexType name="Buyers">
		<xs:sequence>
			<xs:element	name="Buyer"
							type="commons:ContactablePerson"
							minOccurs="0"
							maxOccurs="unbounded"/>
		</xs:sequence>
	</xs:complexType>
	<xs:complexType name="Location">
		<xs:sequence>
			<xs:element	name="ParcelLocation"
							type="record:ParcelLocation"
							minOccurs="0"/>
			<xs:element	name="SchoolDistrict"
							type="commons:SchoolDistrict"
							minOccurs="0"/>
			<xs:element	name="Subdivision"
							type="commons:Subdivision"
							minOccurs="0"/>
			<xs:element	name="CensusTract"
							type="commons:CensusTract"
							minOccurs="0"/>
			<xs:element	name="FloodZone"
							type="record:FloodZone"
							minOccurs="0"/>
		</xs:sequence>
	</xs:complexType>
	<xs:complexType name="TaxDataType">
		<xs:sequence>
			<xs:element name="ParcelNumber" 
							type="commons:ParcelNumber" 
							minOccurs="0"
							maxOccurs="unbounded"/>
			<xs:element	name="TaxArea"
							type="record:TaxArea"
							minOccurs="0"/>
			<xs:element	name="TaxAppraisalArea"
							type="record:TaxAppraisalArea"
							minOccurs="0"/>
			<xs:element	name="LegalDescription"
							type="commons:LegalDescription"
							minOccurs="0"/>
			<xs:element	name="LotNumber"
							type="record:LotNumber"
							minOccurs="0"/>
			<xs:element	name="TaxYear"
							type="record:TaxYear"
							minOccurs="0"/>
			<xs:element	name="AnnualTax"
							type="record:AnnualTax"
							minOccurs="0"/>
			<xs:element	name="AssessmentYear"
							type="record:AssessmentYear"
							minOccurs="0"/>
			<xs:element	name="LandAssessmentAmount"
							type="record:LandAssessment"
							minOccurs="0"/>
			<xs:element	name="ImprovedAssessmentAmount"
							type="record:ImprovedAssessment"
							minOccurs="0"/>
			<xs:element	name="AssessmentAmountTotal"
							type="record:AssessmentTotal"
							minOccurs="0"/>
			<xs:element	name="PercentImproved"
							type="record:PercentImproved"
							minOccurs="0"/>
		</xs:sequence>
	</xs:complexType>
	<xs:complexType name="Feature">
		<xs:sequence>
			<xs:element	name="Description"
							type="xs:string"
							minOccurs="0"/>
			<xs:element	name="Number"
							type="xs:decimal"
							minOccurs="0"/>
			<xs:element	name="Width"
							minOccurs="0">
				<xs:complexType>
					<xs:simpleContent>
						<xs:extension base="commons:Measurement"/>
					</xs:simpleContent>
				</xs:complexType>
			</xs:element>
			<xs:element	name="Depth" minOccurs="0">
				<xs:complexType>
					<xs:simpleContent>
						<xs:extension base="commons:Measurement"/>
					</xs:simpleContent>
				</xs:complexType>
			</xs:element>
			<xs:element	name="YearBuilt"
							type="commons:YearBuiltType"
							minOccurs="0"/>
			<xs:element	name="Value"
							type="xs:decimal"
							minOccurs="0"/>
		</xs:sequence>
	</xs:complexType>
	<xs:complexType	name="Features">
		<xs:sequence>
			<xs:element	name="Feature"
							type="record:Feature"
							minOccurs="0"
							maxOccurs="unbounded"/>
		</xs:sequence>
	</xs:complexType>
	<xs:complexType	name="Characteristics">
		<xs:sequence>
			<xs:element	name="LotArea"
							type="record:LotArea"
							minOccurs="0"/>
			<xs:element	name="BasementType"
							type="commons:BasementType"
							minOccurs="0"/>
			<xs:element	name="BasementArea"
							type="commons:Area"
							minOccurs="0"/>
			<xs:element	name="BuildingArea"
							type="commons:Area"
							minOccurs="0"/>
			<xs:element	name="BuildingsTotal"
							type="commons:boundedCardinalInteger"
							minOccurs="0"/>
			<xs:element	name="Style"
							type="commons:Style"
							minOccurs="0"/>
			<xs:element	name="Stories"
							type="commons:Stories"
							minOccurs="0"/>
			<xs:element	name="YearBuilt"
							type="commons:YearBuiltType"
							minOccurs="0"/>
			<xs:element	name="Condition"
							type="commons:PropertyCondition"
							minOccurs="0"/>
			<xs:element	name="RoomsTotal"
							type="commons:boundedCardinalInteger"
							minOccurs="0"/>
			<xs:element	name="BedsTotal"
							type="commons:boundedCardinalInteger"
							minOccurs="0"/>
			<xs:element	name="BathsTotal"
							type="commons:boundedCardinalInteger"
							minOccurs="0"/>
			<xs:element	name="Parking"
							type="commons:ParkingType"
							minOccurs="0"/>
			<xs:element	name="PatioStyleType"
							type="commons:PatioStyleType"
							minOccurs="0"/>
			<xs:element	name="Heating"
							type="commons:Heating"
							minOccurs="0"/>
			<xs:element	name="Cooling"
							type="commons:Cooling"
							minOccurs="0"/>
			<xs:element	name="Fireplaces"
							type="commons:Fireplaces"
							minOccurs="0"/>
			<xs:element	name="Utilities"
							type="commons:Utilities"
							minOccurs="0"/>
			<xs:element	name="Roof"
							type="commons:Roof"
							minOccurs="0"/>
			<xs:element	name="Exterior"
							type="commons:Exterior"
							minOccurs="0"/>
			<xs:element	name="Topography"
							type="commons:Topography"
							minOccurs="0"/>
		</xs:sequence>
	</xs:complexType>
	<xs:complexType name="PublicRecord">
		<xs:sequence>
			<xs:element name="PublicRecordKey"
							type="commons:resource-key"
							minOccurs="1"
							maxOccurs="1">
				<xs:annotation>
					<xs:documentation>
						This the is the keyfield for the public record.
					</xs:documentation>
				</xs:annotation>				
			</xs:element>
			<xs:element	name="ModificationTimestamp"
							type="commons:ModificationTimestamp"
							minOccurs="1"
							maxOccurs="1">
			</xs:element>
			<xs:element	name="OwnerInformation"
							type="record:OwnerInformation"
							minOccurs="0"/>
			<xs:element	name="Location"
							type="record:Location"
							minOccurs="0"/>
			<xs:element	name="TaxData"
							type="record:TaxDataType"
							minOccurs="0"/>
			<xs:element	name="Characteristics"
							type="record:Characteristics"
							minOccurs="0"/>
			<xs:element	name="LastMarketSale"
							type="record:LastMarketSale"
							minOccurs="0"/>
			<xs:element	name="History"
							type="record:History"
							minOccurs="0"/>
			<xs:element	name="Features"
							type="record:Features"
							minOccurs="0"/>
			<xs:any		namespace="##other"
							minOccurs="0"
							maxOccurs="unbounded"/>
		</xs:sequence>
		<xs:attribute  ref="xml:lang"
							use="optional"/>
		<xs:attribute	name="systemId"
							use="optional">
			<xs:annotation>
				<xs:documentation>
					An identifier of the system that the listing
					'belongs' to when the collection involves more
					than one system.
				</xs:documentation>
				<xs:appinfo>
					<retsid>Maricopa County Recorder's Office</retsid>
				</xs:appinfo>
			</xs:annotation>
		</xs:attribute>
	</xs:complexType>

	<!-- Elements -->
	<xs:element name="PublicRecords">
		<xs:complexType>
			<xs:sequence>
				<xs:element name="PublicRecordsKey"
					type="commons:resource-key"
					minOccurs="1"
					maxOccurs="1">
					<xs:annotation>
						<xs:documentation>
							This the is the keyfield for the collection of public records.
						</xs:documentation>
					</xs:annotation>				
				</xs:element>
				<xs:element	name="PublicRecord"
								type="record:PublicRecord"
								minOccurs="0"
								maxOccurs="unbounded"/>
			</xs:sequence>
			<xs:attribute	name="versionTimestamp"
								type="xs:dateTime"
								use="required"
								fixed="2007-07-26T20:21:00Z"/>
		</xs:complexType>
	</xs:element>
</xs:schema>