<?xml version="1.0" encoding="UTF-8"?>
<xs:schema	xmlns:xs="http://www.w3.org/2001/XMLSchema"
				xmlns:idxex="http://rets.org/xsd/IDXExtended/2007-08"
				xmlns:commons="http://rets.org/xsd/RETSCommons/2007-08"
				xmlns:list="http://rets.org/xsd/Listings/2007-08"
				xmlns:media="http://rets.org/xsd/Media/2007-08"
				xmlns:prop="http://rets.org/xsd/Properties/2007-08"
				xmlns:participants="http://rets.org/xsd/Participants/2007-08"
				targetNamespace="http://rets.org/xsd/IDXExtended/2007-08"
				elementFormDefault="qualified"
				attributeFormDefault="unqualified">

	<!--
		Tab stops
		:set ts=3

		File History
		======================
		$Header: IDXExtended.xsd, 20, 7/26/2007 2:14:54 PM, Paul Stusiak$
		

		$Log:
		 20   055_RETS_Standard1.19        7/26/2007 2:14:54 PM   Paul Stusiak    use
		       ListingArea in IDXExtended; revise ParkingType
		 19   055_RETS_Standard1.18        7/26/2007 10:51:06 AM  Gina Accawi
		      Consolidate remarks types.
		 18   055_RETS_Standard1.17        7/24/2007 10:44:40 PM  Paul Stusiak    use
		       boundedCardinalInteger to avoid code generation use of BigDecimal;
		      use YearBuiltType
		 17   055_RETS_Standard1.16        7/24/2007 12:44:53 PM  Paul Stusiak    fix
		       for build file change, ParticipantsType change
		 16   055_RETS_Standard1.15        7/9/2007 12:37:04 PM   Paul Stusiak
		      Update versionTimestamp to 2007-07-09T19:21:00Z
		 15   055_RETS_Standard1.14        7/9/2007 9:54:38 AM    Gina Accawi
		      Modify reference for participants in the listing.
		 14   055_RETS_Standard1.13        7/6/2007 1:40:14 PM    Gina Accawi
		      Listing participants now have a role in the listing. Additionally,
		      team members have a team role. 
		 13   055_RETS_Standard1.12        7/6/2007 12:05:51 PM   Gina Accawi     Use
		       Property type enums.
		 12   055_RETS_Standard1.11        7/5/2007 5:58:14 PM    Paul Stusiak    use
		       pattern of xs:nonNegativeInteger for elements or types with a name
		      <Property.Total> and a data type of decimal or integer
		 11   055_RETS_Standard1.10        7/5/2007 8:47:25 AM    Gina Accawi
		      Change price types to secure money.
		 10   055_RETS_Standard1.9         6/29/2007 8:59:59 AM   Gina Accawi
		      Update school reference.
		 9    055_RETS_Standard1.8         6/26/2007 12:40:29 PM  Gina Accawi
		      Rename Agent to Member. This affects namespaces, element names, type
		      references, and attribute names.
		 8    055_RETS_Standard1.7         6/26/2007 11:59:38 AM  Gina Accawi
		      Rename items that are TotalBlah to BlahTotal for consistency
		      throughout.
		 7    055_RETS_Standard1.6         5/2/2007 1:13:33 PM    Paul Stusiak
		      change namespace reference, clean up some comments, update version
		      time stamp, use modified type names (code generator related name
		      change)
		 6    055_RETS_Standard1.5         4/3/2007 4:59:29 PM    Paul Stusiak    use
		       url resolution for include, import to test schema validation
		 5    055_RETS_Standard1.4         4/3/2007 1:43:56 AM    Paul Stusiak
		      change namespace to remote location (www.ftc2.com) for testing
		 4    055_RETS_Standard1.3         4/2/2007 11:26:55 AM   Paul Stusiak
		      change namespace to match responding server and to use the URI
		      versioning suggested by both HP and XFront
		 3    055_RETS_Standard1.2         3/30/2007 6:20:29 PM   Paul Stusiak
		      Update of the versionTimestamp and the namespace (namespace to
		      200704). Change formating to a standard format
		 2    055_RETS_Standard1.1         3/30/2007 12:50:14 PM  Paul Stusiak
		      Remove AssociationFee as a separate type
		 1    055_RETS_Standard1.0         3/28/2007 2:10:19 PM   Gina Accawi     
		$
		======================
	-->

	<xs:annotation>
		<xs:documentation>
			Elements related to extended listing IDX documents.
		</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/Listings/2007-08"
					schemaLocation="../../../xsd/Listings/2007-08/Listings.xsd"/>
	<xs:import	namespace="http://rets.org/xsd/Media/2007-08"
					schemaLocation="../../../xsd/Media/2007-08/Media.xsd"/>
	<xs:import	namespace="http://rets.org/xsd/Properties/2007-08"
					schemaLocation="../../../xsd/Properties/2007-08/Properties.xsd"/>
	<xs:import 	namespace="http://rets.org/xsd/Participants/2007-08"
					schemaLocation="../../../xsd/Participants/2007-08/Participants.xsd"/>

	<!-- Types -->
	<xs:complexType name="IDXExtendedType">
		<xs:sequence>
			<xs:element name="Listing">
				<xs:complexType>
					<xs:sequence>
						<xs:element	name="MarketingArea"
										type="commons:MarketingAreaType"/>
						<xs:element	name="ListingId"
										type="commons:ListingId"/>
						<xs:element	name="Status"
										type="list:ListingStatusEnum"/>
						<xs:element	name="ListPrice"
										type="commons:SecureMoney"/>
						<xs:element	name="Members"
										type="participants:ParticipantsType"/>
						<xs:element	name="Offices"
										type="list:ListingOffices"/>
						<xs:element	name="PropertyType"
										type="commons:PropertyTypeEnum"/>
						<xs:element	name="PropertySubType"
										type="commons:PropertySubTypeEnum"/>
						<xs:element	name="Address"
										type="commons:Address"/>
						<xs:element	name="ListDateTime"
										type="commons:SecureDateTime"
										minOccurs="0"/>
						<xs:element	name="SoldDateTime"
										type="commons:SecureDateTime"
										minOccurs="0"/>
						<xs:element	name="ContractDateTime"
										type="commons:SecureDateTime"
										minOccurs="0"/>
						<xs:element	name="ExpirationDateTime"
										type="commons:SecureDateTime"
										minOccurs="0"/>
						<xs:element	name="SoldPrice"
							type="commons:SecureMoney"
										minOccurs="0"/>
						<xs:element	name="ContractType"
										type="xs:string"
										minOccurs="0"/>
						<xs:element	name="PublicRemarks"
										type="commons:SecureRemark"
										minOccurs="0"/>
						<xs:element	name="InternetDisplay"
										type="xs:boolean"
										minOccurs="0"/>
						<xs:element	name="MLS"
										type="commons:ListingServiceName"
										minOccurs="0"/>
						<xs:element	name="LegalDescription"
										type="commons:LegalDescription"
										minOccurs="0"/>
						<xs:element	name="ShowingsContact"
										type="xs:string"
										minOccurs="0"/>
						<xs:any		namespace="##other"
										minOccurs="0"
										maxOccurs="unbounded"/>
				</xs:sequence>
			</xs:complexType>
		</xs:element>
		<xs:element name="Property">
				<xs:complexType>
					<xs:sequence>
						<xs:element	name="AreaTotal"
										type="commons:Area"
										minOccurs="0"/>
						<xs:element	name="FinishedAreaTotal"
										type="commons:boundedCardinalInteger"
										minOccurs="0"/>
						<xs:element	name="LotSize"
										type="commons:LotSize"
										minOccurs="0"/>
						<xs:element	name="LotDescription"
										type="xs:string"
										minOccurs="0"/>
						<xs:element	name="YearBuilt"
										type="commons:YearBuiltType"
										minOccurs="0"/>
						<xs:element	name="Style"
										type="commons:Style"
										minOccurs="0"/>
						<xs:element	name="Subdivision"
										type="commons:Subdivision"
										minOccurs="0"/>
						<xs:element	name="SchoolData"
										type="commons:School"
										minOccurs="0"/>
						<xs:element	name="Parking"
										type="commons:ParkingType"
										minOccurs="0"/>
						<xs:element	name="AssociationFee"
										type="commons:Fee"
										minOccurs="0"/>
						<xs:element	name="PinNumber"
										type="xs:string"
										minOccurs="0"/>
						<xs:element	name="Rooms"
										type="prop:Rooms"
										minOccurs="0"/>
						<xs:element	name="Media"
										type="media:MediaType"
										minOccurs="0"/>
						<xs:any		namespace="##other"
										minOccurs="0"
										maxOccurs="unbounded"/>
					</xs:sequence>
				</xs:complexType>
			</xs:element>
		</xs:sequence>
		<xs:attribute	name="versionTimestamp"
							type="xs:dateTime"
							use="required"
							fixed="2007-07-26T20:31:00Z"/>
	</xs:complexType>

	<!-- Element -->
		<xs:element	name="IDXExtended"
						type="idxex:IDXExtendedType"/>
</xs:schema>