<?xml version="1.0" encoding="UTF-8"?>
<xs:schema	xmlns:xs="http://www.w3.org/2001/XMLSchema"
				xmlns:event="http://rets.org/xsd/Events/2007-08"
				xmlns:commons="http://rets.org/xsd/RETSCommons/2007-08"
				targetNamespace="http://rets.org/xsd/Events/2007-08"
				elementFormDefault="qualified"
				attributeFormDefault="unqualified">

	<!--
		Tab stops
		:set ts=3

		File History
		======================
		$Header: Events.xsd, 14, 7/9/2007 12:37:05 PM, Paul Stusiak$
		

		$Log:
		 14   055_RETS_Standard 1.13        7/9/2007 12:37:05 PM   Paul Stusiak
		      Update versionTimestamp to 2007-07-09T19:21:00Z
		 13   055_RETS_Standard 1.12        7/6/2007 2:29:43 PM    Gina Accawi
		      Rename ids.
		 12   055_RETS_Standard 1.11        5/1/2007 2:23:26 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
		 11   055_RETS_Standard 1.10        4/3/2007 4:59:29 PM    Paul Stusiak
		      use url resolution for include, import to test schema validation
		 10   055_RETS_Standard 1.9         4/3/2007 1:43:56 AM    Paul Stusiak
		      change namespace to remote location (www.ftc2.com) for testing
		 9    055_RETS_Standard 1.8         4/2/2007 11:26:54 AM   Paul Stusiak
		      change namespace to match responding server and to use the URI
		      versioning suggested by both HP and XFront
		 8    055_RETS_Standard 1.7         3/30/2007 6:20:28 PM   Paul Stusiak
		      Update of the versionTimestamp and the namespace (namespace to
		      200704). Change formating to a standard format
		 7    055_RETS_Standard 1.6         3/20/2007 9:43:01 PM   Paul Stusiak
		      update namespace to match filename
		 6    055_RETS_Standard 1.5         3/20/2007 9:42:08 PM   Paul Stusiak
		      rename file to match global element name
		 5    055_RETS_Standard 1.4         3/8/2007 4:44:28 PM    Paul Stusiak
		      Fix standard header for documentation purposes, change document
		      formatting.
		 4    055_RETS_Standard 1.3         3/8/2007 12:58:27 PM   Gina Accawi
		      Rename id to Id. Change global top level element to an anonymous type
		      definition. Renamed version attribute to versionTimestamp with
		      standard fixed value.
		 3    055_RETS_Standard 1.2         2/28/2007 12:51:35 AM  Paul Stusiak
		      add standard header and refactoring RETSCommons changes
		 2    055_RETS_Standard 1.1         2/22/2007 3:34:47 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.
		 1    055_RETS_Standard 1.0         12/20/2006 12:32:46 PM Jeff Brush      
		$
		======================
	-->

	<xs:annotation>
		<xs:documentation>
			Elements related to time based events.
		</xs:documentation>
	</xs:annotation>


	<xs:import	namespace="http://rets.org/xsd/RETSCommons/2007-08"
					schemaLocation="../../../xsd/RETSCommons/2007-08/RETSCommons.xsd"/>

	<!-- Types -->
	<xs:complexType name="Attendees">
		<xs:sequence>
			<xs:element	name="Attendee"
							type="commons:ContactablePerson"
							minOccurs="0"
							maxOccurs="unbounded"/>
		</xs:sequence>
	</xs:complexType>
	<xs:complexType	name="Status">
		<xs:simpleContent>
			<xs:extension base="xs:string"/>
		</xs:simpleContent>
	</xs:complexType>
	<xs:complexType	name="Type">
		<xs:simpleContent>
			<xs:extension base="xs:string"/>
		</xs:simpleContent>
	</xs:complexType>
	<xs:complexType	name="Location">
		<xs:simpleContent>
			<xs:extension base="xs:string"/>
		</xs:simpleContent>
	</xs:complexType>
	<xs:complexType	name="Priority">
		<xs:simpleContent>
			<xs:extension base="xs:string"/>
		</xs:simpleContent>
	</xs:complexType>
	<xs:complexType	name="Recurrence">
		<xs:simpleContent>
			<xs:extension base="xs:string"/>
		</xs:simpleContent>
	</xs:complexType>
	<xs:complexType	name="Description">
		<xs:simpleContent>
			<xs:extension base="xs:string"/>
		</xs:simpleContent>
	</xs:complexType>
	<xs:complexType	name="Comment">
		<xs:simpleContent>
			<xs:extension base="xs:string"/>
		</xs:simpleContent>
	</xs:complexType>
	<xs:complexType	name="StartDate">
		<xs:simpleContent>
			<xs:extension base="xs:dateTime"/>
		</xs:simpleContent>
	</xs:complexType>
	<xs:complexType	name="EndDate">
		<xs:simpleContent>
			<xs:extension base="xs:dateTime"/>
		</xs:simpleContent>
	</xs:complexType>
	<xs:complexType	name="Duration">
		<xs:simpleContent>
			<xs:extension base="xs:decimal"/>
		</xs:simpleContent>
	</xs:complexType>
	<xs:complexType	name="EventType">
		<xs:sequence>
			<xs:element	name="CreatedDateTime"
							type="commons:SecureDateTime"
							minOccurs="0"/>
			<xs:element	name="StartDate"
							type="event:StartDate"
							minOccurs="0"/>
			<xs:element	name="EndDate"
							type="event:EndDate"
							minOccurs="0"/>
			<xs:element	name="Duration"
							type="event:Duration"/>
			<xs:element	name="ModificationTimestamp"
							type="commons:ModificationTimestamp"
							minOccurs="0"/>
			<xs:element	name="Type"
							type="event:Type"
							minOccurs="0"/>
			<xs:element	name="Description"
							type="event:Description"
							minOccurs="0"/>
			<xs:element	name="Location"
							type="event:Location"
							minOccurs="0"/>
			<xs:element	name="Organizer"
							type="commons:ContactablePerson"
							minOccurs="0"/>
			<xs:element	name="Priority"
							type="event:Priority"
							minOccurs="0"/>
			<xs:element	name="Recurrence"
							type="event:Recurrence"
							minOccurs="0"/>
			<xs:element	name="Status"
							type="event:Status"
							minOccurs="0"/>
			<xs:element	name="URL"
							type="commons:URL"
							minOccurs="0"/>
			<xs:element	name="Attendees"
							type="event:Attendees"
							minOccurs="0"/>
			<xs:element	name="Comment"
							type="event:Comment"
							minOccurs="0"/>
			<xs:element	name="Contact"
							type="commons:ContactablePerson"
							minOccurs="0"/>
			<xs:any		namespace="##other"
							minOccurs="0"
							maxOccurs="unbounded"/>
		</xs:sequence>
		<xs:attribute	name="eventId"
							type="xs:string"
							use="required"/>
	</xs:complexType>

	<!-- Elements -->
	<xs:element name="Events">
		<xs:complexType>
			<xs:sequence>
				<xs:element	name="Event"
								type="event:EventType"
								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>