<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema"
xmlns:con="http://rets.org/xsd/Contacts/2007-08"
xmlns:commons="http://rets.org/xsd/RETSCommons/2007-08"
targetNamespace="http://rets.org/xsd/Contacts/2007-08"
elementFormDefault="qualified"
attributeFormDefault="unqualified">
<!--
(C)2007 National Association of REALTORS(R). All Rights Reserved
Tab stops
:set ts=3
File History
======================
$Header: Contacts.xsd, 24, 1/24/08 2:30:32 PM EST, Paul Stusiak$
$Log:
24 055_RETS_Standard 1.23 1/24/08 2:30:32 PM EST Paul Stusiak
correct copyright notice language
23 055_RETS_Standard 1.22 10/8/07 4:22:11 PM EDT Paul Stusiak
Update version timestamp
22 055_RETS_Standard 1.21 7/9/07 3:37:06 PM EDT Paul Stusiak
Update versionTimestamp to 2007-07-09T19:21:00Z
21 055_RETS_Standard 1.20 7/2/07 12:45:28 PM EDT Gina Accawi
Rename ResourceKey to be the actual ResourceNameKey.
20 055_RETS_Standard 1.19 6/29/07 3:34:39 PM EDT Gina Accawi
Add a key for the resource.
19 055_RETS_Standard 1.18 6/27/07 12:43:59 PM EDTGina Accawi
Correct missed attribute references.
18 055_RETS_Standard 1.17 5/1/07 5:11:07 PM EDT 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
17 055_RETS_Standard 1.16 4/3/07 7:59:28 PM EDT Paul Stusiak
use url resolution for include, import to test schema validation
16 055_RETS_Standard 1.15 4/3/07 4:43:55 AM EDT Paul Stusiak
change namespace to remote location (www.ftc2.com) for testing
15 055_RETS_Standard 1.14 4/2/07 2:26:53 PM EDT Paul Stusiak
change namespace to match responding server and to use the URI
versioning suggested by both HP and XFront
14 055_RETS_Standard 1.13 3/30/07 9:20:19 PM EDT Paul Stusiak
Update of the versionTimestamp and the namespace (namespace to
200704). Change formating to a standard format
13 055_RETS_Standard 1.12 3/26/07 9:43:42 PM EDT Paul Stusiak
additional annotations added and some minor corrections
12 055_RETS_Standard 1.11 3/21/07 12:08:08 AM EDTPaul Stusiak
Move most complex non-global element to standard position near the
bottom of the file. Change namespace to match global element name.
11 055_RETS_Standard 1.10 3/21/07 12:06:33 AM EDTPaul Stusiak
Changed name to match global element name
10 055_RETS_Standard 1.9 3/8/07 2:48:12 PM EST Gina Accawi
Add types for Subject, Body, and Date. Renamed id to Id for
consistency sake.
9 055_RETS_Standard 1.8 2/28/07 3:41:14 AM EST Paul Stusiak
add standard header and refactoring RETSCommons changes
8 055_RETS_Standard 1.7 2/22/07 6:34:45 PM EST 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.
7 055_RETS_Standard 1.6 12/20/06 3:31:04 PM ESTJeff 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
6 055_RETS_Standard 1.5 12/2/06 4:12:44 AM EST Paul Stusiak
various mechanical fixes tho the schema and a re-direct from
retsserver.realtors.org to www.ftc2.com
5 055_RETS_Standard 1.4 11/28/06 4:41:32 AM ESTPaul Stusiak
updated version per meetings
4 055_RETS_Standard 1.3 9/20/06 3:43:25 PM EDT Jeff Brush
chgd schemaLocation to point to http://retsserver.rets.org:8080/xsd/
3 055_RETS_Standard 1.2 4/7/06 10:36:38 PM EDT Jeff Brush
renamed version attribute to versionTimestamp for schema versioning
2 055_RETS_Standard 1.1 4/7/06 4:37:26 PM EDT Jeff Brush
modified to have schema versioning as datetime, add year month to
namespaces, minor corrections
1 055_RETS_Standard 1.0 4/4/06 11:06:05 AM EDT Jeff Brush
Updated schemas. All MLS schemas have extensibility points. New
ObjectReferenceList.xsd
$
======================
-->
<xs:annotation>
<xs:documentation>
Elements related to a Personal contact.
</xs:documentation>
</xs:annotation>
<xs:import namespace="http://rets.org/xsd/RETSCommons/2007-08"
schemaLocation="../../../xsd/RETSCommons/2007-08/RETSCommons.xsd"/>
<xs:attribute name="messageType">
<xs:simpleType>
<xs:restriction base="xs:token">
<xs:enumeration value="Sent"/>
<xs:enumeration value="Received"/>
</xs:restriction>
</xs:simpleType>
</xs:attribute>
<xs:attribute name="contactType">
<xs:simpleType>
<xs:restriction base="xs:token">
<xs:enumeration value="Business"/>
<xs:enumeration value="Personal"/>
<xs:enumeration value="System"/>
</xs:restriction>
</xs:simpleType>
</xs:attribute>
<xs:complexType name="Message">
<xs:sequence>
<xs:element name="Date"
type="commons:SecureDateTime"
minOccurs="0"/>
<xs:element name="Subject"
type="commons:SecureString"
minOccurs="0"/>
<xs:element name="Body"
type="commons:SecureString"
minOccurs="0"/>
</xs:sequence>
<xs:attribute name="messageId"
type="xs:string"
use="required"/>
<xs:attribute ref="con:messageType"
use="required"/>
</xs:complexType>
<xs:complexType name="Messages">
<xs:sequence>
<xs:element name="Message"
type="con:Message"
minOccurs="0"
maxOccurs="unbounded"/>
</xs:sequence>
</xs:complexType>
<xs:complexType name="Contact">
<xs:sequence>
<xs:element name="ContactKey"
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="Person"
type="commons:ContactablePerson"
minOccurs="0"/>
<xs:element name="CreatedDateTime"
type="commons:SecureDateTime"
minOccurs="0"/>
<xs:element name="LastUpdatedDateTime"
type="commons:SecureDateTime"
minOccurs="0"/>
<xs:element name="Messages"
type="con:Messages"
minOccurs="0"/>
<xs:any namespace="##other"
minOccurs="0"
maxOccurs="unbounded"/>
</xs:sequence>
<xs:attribute name="contactId"
type="xs:string"
use="required"/>
<xs:attribute ref="con:contactType"
use="required"/>
</xs:complexType>
<!-- Elements -->
<xs:element name="Contacts">
<xs:complexType>
<xs:sequence>
<xs:element name="Contact"
type="con:Contact"
minOccurs="0"
maxOccurs="unbounded"/>
</xs:sequence>
<xs:attribute name="versionTimestamp"
type="xs:dateTime"
use="required"
fixed="2007-10-08T16:27:23Z"/>
</xs:complexType>
</xs:element>
</xs:schema>
|