<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema"
xmlns:offices="http://rets.org/xsd/Offices/2007-08"
xmlns:commons="http://rets.org/xsd/RETSCommons/2007-08"
xmlns:media="http://rets.org/xsd/Media/2007-08"
xmlns:nrds="http://rets.org/xsd/NRDSCommons/2007-08"
targetNamespace="http://rets.org/xsd/Offices/2007-08"
elementFormDefault="qualified"
attributeFormDefault="unqualified">
<!--
(C)2007 National Association of REALTORS(R). All Rights Reserved
Tab stops
:set ts=3
File History
======================
$Header: Offices.xsd, 50, 4/1/08 7:51:03 PM EDT, Paul Stusiak$
$Log:
50 055_RETS_Standard 1.49 4/1/08 7:51:03 PM EDT Paul Stusiak
add media items to schema
49 055_RETS_Standard 1.48 3/31/08 4:09:27 AM EDT Paul Stusiak
work in progress checkin against change requests including the RCP for
the adopted schemas
48 055_RETS_Standard 1.47 1/24/08 3:38:44 PM EST Gina Accawi
Rename nrds:OfficeType to nrds:OfficeCategory.
47 055_RETS_Standard 1.46 1/24/08 2:30:34 PM EST Paul Stusiak
correct copyright notice language
46 055_RETS_Standard 1.45 10/8/07 4:22:14 PM EDT Paul Stusiak
Update version timestamp
45 055_RETS_Standard 1.44 10/2/07 5:33:10 PM EDT Gina Accawi
Rename ContactMethod to ContactMethods. Add values to the
PhoneTypeEnum.
44 055_RETS_Standard 1.43 10/2/07 5:11:06 PM EDT Gina Accawi
Put extension point on element declaration.
43 055_RETS_Standard 1.42 10/2/07 3:19:26 PM EDT Gina Accawi
Create reusable type for systemId. Reference it where used. Ensure
there is a systemId on the primary single and optional on plural
version of resource payloads.
42 055_RETS_Standard 1.41 9/26/07 9:42:55 AM EDT Gina Accawi
Put rental/lease information for the listing contract into a
container. Add Pending date and Pending price.
41 055_RETS_Standard 1.40 9/25/07 2:59:30 PM EDT Gina Accawi
Restructure listing complex types.
40 055_RETS_Standard 1.39 8/1/07 3:56:55 PM EDT Gina Accawi
Update version timestamp.
39 055_RETS_Standard 1.38 8/1/07 3:45:09 PM EDT Gina Accawi
Consolidate NRDS items into a container. Add appinfo example element
containers.
38 055_RETS_Standard 1.37 8/1/07 2:01:31 PM EDT Gina Accawi
Add MLSLicensing.
37 055_RETS_Standard 1.36 8/1/07 1:24:35 PM EDT Gina Accawi
Add AssociationName, MLSName
36 055_RETS_Standard 1.35 8/1/07 1:14:31 PM EDT Gina Accawi
Add website, make repeatable
35 055_RETS_Standard 1.34 7/26/07 11:59:42 PM EDTPaul Stusiak
Update version timestamp
34 055_RETS_Standard 1.33 7/24/07 4:37:51 PM EDT Gina Accawi
Modify offices to allow mulitple office elements.
33 055_RETS_Standard 1.32 7/24/07 2:46:09 PM EDT Gina Accawi
Removed SystemOfficeGuid.
32 055_RETS_Standard 1.31 7/24/07 12:52:51 PM EDTGina Accawi
Remove ref to ShortOffice. Replace with full Office.
31 055_RETS_Standard 1.30 7/24/07 12:28:30 PM EDTGina Accawi
Add OfficeLevelLabel.
30 055_RETS_Standard 1.29 7/9/07 4:58:57 AM EDT Paul Stusiak
re-order language and version attributes
29 055_RETS_Standard 1.28 7/6/07 5:32:03 PM EDT Gina Accawi
Rename NRDS items. Remove role, since it is now handled within the
Listing schema.
28 055_RETS_Standard 1.27 7/5/07 5:19:03 PM EDT Gina Accawi
Remove addresses, as the information is now in ContactMethod.
27 055_RETS_Standard 1.26 7/4/07 7:08:29 PM EDT Paul Stusiak
Add county to Office
26 055_RETS_Standard 1.25 7/2/07 12:45:32 PM EDT Gina Accawi
Rename ResourceKey to be the actual ResourceNameKey.
25 055_RETS_Standard 1.24 6/29/07 4:04:04 PM EDT Gina Accawi
Add media.
24 055_RETS_Standard 1.23 6/29/07 3:34:43 PM EDT Gina Accawi
Add a key for the resource.
23 055_RETS_Standard 1.22 6/29/07 12:00:59 PM EDTGina Accawi
Remove formal name.
22 055_RETS_Standard 1.21 6/27/07 2:53:30 PM EDT Gina Accawi
Remove formal name.
21 055_RETS_Standard 1.20 6/26/07 4:05:14 PM EDT Gina Accawi
Rename ContactInformation to ContactMethod.
20 055_RETS_Standard 1.19 6/26/07 3:40:33 PM EDT Gina Accawi
Rename Agent to Member. This affects namespaces, element names, type
references, and attribute names.
19 055_RETS_Standard 1.18 6/13/07 2:49:33 PM EDT Gina Accawi
Add NRDS to the element names for types coming from the NRDSCommons
namespace as per May payloads meeting suggestion for Agents schema.
18 055_RETS_Standard 1.17 5/14/07 1:32:57 PM EDT Gina Accawi
Add xml:lang attribute to root level type definition.
17 055_RETS_Standard 1.16 5/2/07 4:29:19 PM EDT Paul Stusiak
use modified complex type name
16 055_RETS_Standard 1.15 5/1/07 5:49:20 PM EDT Paul Stusiak
Update the version timestamp, make the schema relative again add some
annotation.
15 055_RETS_Standard 1.14 4/3/07 7:59:31 PM EDT Paul Stusiak
use url resolution for include, import to test schema validation
14 055_RETS_Standard 1.13 4/3/07 4:43:58 AM EDT Paul Stusiak
change namespace to remote location (www.ftc2.com) for testing
13 055_RETS_Standard 1.12 4/2/07 2:26:57 PM EDT 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/07 9:20:59 PM EDT 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/20/07 12:20:12 AM EDTPaul Stusiak
Added office information, formerly in NRDSCommons. Remove elements and
replace with ShortOffice type.
10 055_RETS_Standard 1.9 3/8/07 1:57:37 AM EST Paul Stusiak
Clean up the project information for the purposes of document
generation.
9 055_RETS_Standard 1.8 3/6/07 4:50:33 PM EST Paul Stusiak
Added header, tab stop information, change ID to Id across files.
8 055_RETS_Standard 1.7 2/22/07 6:34:53 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:08 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:45 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:27 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:40 PM EDT Jeff Brush
renamed version attribute to versionTimestamp for schema versioning
2 055_RETS_Standard 1.1 4/7/06 4:37:39 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:09 AM EDT Jeff Brush
Updated schemas. All MLS schemas have extensibility points. New
ObjectReferenceList.xsd
$
======================
-->
<xs:annotation>
<xs:documentation>
Elements related to Member Offices.
</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/NRDSCommons/2007-08"
schemaLocation="../../../xsd/NRDSCommons/2007-08/NRDSCommons.xsd"/>
<xs:import namespace="http://rets.org/xsd/Media/2007-08"
schemaLocation="../../../xsd/Media/2007-08/Media.xsd"/>
<xs:import namespace="http://www.w3.org/XML/1998/namespace"
schemaLocation="http://www.w3.org/2001/xml.xsd"/>
<!-- Types -->
<xs:complexType name="OfficeCorporateName">
<xs:annotation>
<xs:documentation>
Text field containing the corporate name of the
office, if different from the business name.
</xs:documentation>
</xs:annotation>
<xs:simpleContent>
<xs:extension base="commons:SecureString"/>
</xs:simpleContent>
</xs:complexType>
<xs:complexType name="OfficeContactManager">
<xs:annotation>
<xs:documentation>
The member id of the contact person at
the office location, when the contact
person is not the same as the designated
realtor. Used primarily in branch locations.
</xs:documentation>
</xs:annotation>
<xs:simpleContent>
<xs:extension base="commons:SecureString"/>
</xs:simpleContent>
</xs:complexType>
<xs:complexType name="CorporateLicense">
<xs:annotation>
<xs:documentation>
The office's corporate or business license.
</xs:documentation>
</xs:annotation>
<xs:simpleContent>
<xs:extension base="commons:SecureString"/>
</xs:simpleContent>
</xs:complexType>
<xs:complexType name="NRDSFranchiseId">
<xs:annotation>
<xs:documentation>
Used to indicate the franchise, if any,
this office is affiliated with.
NRDS expects a unique, valid 9 digit office id.
</xs:documentation>
</xs:annotation>
<xs:simpleContent>
<xs:extension base="commons:SecureInteger"/>
</xs:simpleContent>
</xs:complexType>
<xs:complexType name="NRDSParentCompanyId">
<xs:annotation>
<xs:documentation>
Used if this office is affiliated with a
parent company. NRDS expects a unique,
valid 9 digit office id.
</xs:documentation>
</xs:annotation>
<xs:simpleContent>
<xs:extension base="commons:SecureInteger"/>
</xs:simpleContent>
</xs:complexType>
<xs:complexType name="NRDSMainOfficeId">
<xs:annotation>
<xs:documentation>
If this office is a branch, the
Main Office Id must be present. NRDS expects
a valid, unique 9 digit office id.
</xs:documentation>
</xs:annotation>
<xs:simpleContent>
<xs:extension base="commons:SecureInteger"/>
</xs:simpleContent>
</xs:complexType>
<xs:complexType name="NRDSBillingOfficeId">
<xs:annotation>
<xs:documentation>
Used to track the office id of the
billing office. NRDS expects a valid,
unique 9 digit office id.
</xs:documentation>
</xs:annotation>
<xs:simpleContent>
<xs:extension base="commons:SecureInteger"/>
</xs:simpleContent>
</xs:complexType>
<xs:complexType name="NRDSType">
<xs:sequence>
<xs:element name="NRDSOfficeType"
type="nrds:OfficeCategory"
minOccurs="0"
maxOccurs="1">
<xs:annotation>
<xs:appinfo>
<retsid>100277</retsid>
<example>Locally defined string for office type</example>
</xs:appinfo>
</xs:annotation>
</xs:element>
<xs:element name="NRDSBranchId"
type="nrds:BranchId"
minOccurs="0"
maxOccurs="1">
<xs:annotation>
<xs:appinfo>
<retsid>100278</retsid>
<example>Locally defined string for branch identifier</example>
</xs:appinfo>
</xs:annotation>
</xs:element>
<xs:element name="NRDSBranchType"
type="nrds:OfficeCategory"
minOccurs="0"
maxOccurs="1">
<xs:annotation>
<xs:appinfo>
<retsid>100279</retsid>
<example>Locally defined string for branch type</example>
</xs:appinfo>
</xs:annotation>
</xs:element>
<xs:element name="NRDSPointOfEntry"
type="nrds:PointOfEntry"
minOccurs="0"
maxOccurs="1">
<xs:annotation>
<xs:appinfo>
<retsid>100280</retsid>
<example>123456789</example>
</xs:appinfo>
</xs:annotation>
</xs:element>
<xs:element name="NRDSStatusCode"
type="nrds:MemberStatus"
minOccurs="0"
maxOccurs="1">
<xs:annotation>
<xs:appinfo>
<retsid>100281</retsid>
<example>A</example>
</xs:appinfo>
</xs:annotation>
</xs:element>
<xs:element name="NRDSSalesPersonCount"
type="nrds:SalesPersonCount"
minOccurs="0"
maxOccurs="1">
<xs:annotation>
<xs:appinfo>
<retsid>100282</retsid>
<example>4</example>
</xs:appinfo>
</xs:annotation>
</xs:element>
<xs:element name="NRDSMainOfficeId"
type="offices:NRDSMainOfficeId"
minOccurs="0"
maxOccurs="1">
<xs:annotation>
<xs:appinfo>
<retsid>100283</retsid>
<example>123456789</example>
</xs:appinfo>
</xs:annotation>
</xs:element>
<xs:element name="NRDSBillingOfficeId"
type="offices:NRDSBillingOfficeId"
minOccurs="0"
maxOccurs="1">
<xs:annotation>
<xs:appinfo>
<retsid>100284</retsid>
<example>123456789</example>
</xs:appinfo>
</xs:annotation>
</xs:element>
<xs:element name="NRDSFranchiseId"
type="offices:NRDSFranchiseId"
minOccurs="0"
maxOccurs="1">
<xs:annotation>
<xs:appinfo>
<retsid>100285</retsid>
<example>123456789</example>
</xs:appinfo>
</xs:annotation>
</xs:element>
<xs:element name="NRDSParentCompanyId"
type="offices:NRDSParentCompanyId"
minOccurs="0"
maxOccurs="1">
<xs:annotation>
<xs:appinfo>
<retsid>100286</retsid>
<example>123456789</example>
</xs:appinfo>
</xs:annotation>
</xs:element>
<xs:element name="NRDSAssociationId"
type="nrds:AssociationId"
minOccurs="0"
maxOccurs="1">
<xs:annotation>
<xs:appinfo>
<retsid>100287</retsid>
<example>7777</example>
</xs:appinfo>
</xs:annotation>
</xs:element>
<xs:element name="NRDSMLSId"
type="nrds:MLSAssociationId"
minOccurs="0"
maxOccurs="1">
<xs:annotation>
<xs:appinfo>
<retsid>100288</retsid>
<example>8888</example>
</xs:appinfo>
</xs:annotation>
</xs:element>
<xs:element name="NRDSStatusDate"
type="nrds:StatusDate"
minOccurs="0"
maxOccurs="1">
<xs:annotation>
<xs:appinfo>
<retsid>100289</retsid>
<example>2007-03-10T12:00:00-05:00</example>
</xs:appinfo>
</xs:annotation>
</xs:element>
<xs:element name="NRDSJoinedDate"
type="nrds:JoinedDate"
minOccurs="0"
maxOccurs="1">
<xs:annotation>
<xs:appinfo>
<retsid>100290</retsid>
<example>2007-03-10T12:00:00-05:00</example>
</xs:appinfo>
</xs:annotation>
</xs:element>
</xs:sequence>
</xs:complexType>
<xs:complexType name="OfficeType">
<xs:sequence>
<xs:element name="OfficeKey"
type="commons:resource-key"
minOccurs="1"
maxOccurs="1">
<xs:annotation>
<xs:documentation>
This the is the keyfield for the resource.
</xs:documentation>
<xs:appinfo>
<retsid>100291</retsid>
</xs:appinfo>
</xs:annotation>
</xs:element>
<xs:element name="OfficeId"
type="commons:OfficeId"
minOccurs="0"
maxOccurs="1">
<xs:annotation>
<xs:documentation>
</xs:documentation>
<xs:appinfo>
<retsid>100292</retsid>
</xs:appinfo>
</xs:annotation>
</xs:element>
<xs:element name="OfficeLevelLabel"
type="xs:string"
minOccurs="0"
maxOccurs="1">
<xs:annotation>
<xs:documentation>
OfficeLevelLabel is a description
of this office within the office
hierarchy. This will have a value
such as Main Office, Company,
Franchise, Boutique, Branch.
</xs:documentation>
<xs:appinfo>
<retsid>100293</retsid>
<example>Main Office</example>
</xs:appinfo>
</xs:annotation>
</xs:element>
<xs:element name="OfficeName"
type="commons:OfficeName"
minOccurs="0"
maxOccurs="1">
<xs:annotation>
<xs:appinfo>
<retsid>100294</retsid>
<example>Grantsville</example>
</xs:appinfo>
</xs:annotation>
</xs:element>
<xs:element name="OfficeCorporateName"
type="offices:OfficeCorporateName"
minOccurs="0"
maxOccurs="1">
<xs:annotation>
<xs:appinfo>
<retsid>100295</retsid>
<example>Swan Homefinders</example>
</xs:appinfo>
</xs:annotation>
</xs:element>
<xs:element name="BrokerId"
type="commons:BrokerId"
minOccurs="0"
maxOccurs="1">
<xs:annotation>
<xs:appinfo>
<retsid>100296</retsid>
<example>789342</example>
</xs:appinfo>
</xs:annotation>
</xs:element>
<xs:element name="BrokerName"
type="commons:BrokerName"
minOccurs="0"
maxOccurs="1">
<xs:annotation>
<xs:appinfo>
<retsid>100297</retsid>
<example>Short & Swan Real Estate, Inc.</example>
</xs:appinfo>
</xs:annotation>
</xs:element>
<xs:element name="Website"
type="xs:anyURI"
minOccurs="0"
maxOccurs="100">
<xs:annotation>
<xs:documentation>
The website URI for the office.
</xs:documentation>
<xs:appinfo>
<retsid>100298</retsid>
<example>http://www.realOffice.com/</example>
</xs:appinfo>
</xs:annotation>
</xs:element>
<xs:element name="TaxId"
type="commons:TaxId"
minOccurs="0"
maxOccurs="1">
<xs:annotation>
<xs:appinfo>
<retsid>100299</retsid>
<example>RE123456789</example>
</xs:appinfo>
</xs:annotation>
</xs:element>
<xs:element name="CorporateLicense"
type="offices:CorporateLicense"
minOccurs="0"
maxOccurs="1">
<xs:annotation>
<xs:appinfo>
<retsid>100300</retsid>
<example>MD123456789</example>
</xs:appinfo>
</xs:annotation>
</xs:element>
<xs:element name="ProfessionalLicensing"
type="commons:ProfessionalLicenseType"
minOccurs="0"
maxOccurs="1">
<xs:annotation>
<xs:appinfo>
<retsid>100301</retsid>
</xs:appinfo>
</xs:annotation>
</xs:element>
<xs:element name="OfficeCounty"
type="commons:SecureString"
minOccurs="0"
maxOccurs="1">
<xs:annotation>
<xs:appinfo>
<retsid>100302</retsid>
</xs:appinfo>
</xs:annotation>
</xs:element>
<xs:element name="ContactManager"
type="offices:OfficeContactManager"
minOccurs="0"
maxOccurs="1">
<xs:annotation>
<xs:appinfo>
<retsid>100303</retsid>
<example>Beverly Smith</example>
</xs:appinfo>
</xs:annotation>
</xs:element>
<xs:element name="ContactMethods"
type="commons:ContactMethods"
minOccurs="0"
maxOccurs="1">
<xs:annotation>
<xs:appinfo>
<retsid>100304</retsid>
</xs:appinfo>
</xs:annotation>
</xs:element>
<xs:element name="AssociationMembership"
type="commons:AssociationMembershipType"
minOccurs="0"
maxOccurs="unbounded">
<xs:annotation>
<xs:documentation>
Association membership information
for the office.
</xs:documentation>
<xs:appinfo>
<retsid>100305</retsid>
</xs:appinfo>
</xs:annotation>
</xs:element>
<xs:element name="MLSOperator"
type="commons:MLSOperator"
minOccurs="0"
maxOccurs="unbounded">
<xs:annotation>
<xs:appinfo>
<retsid>100306</retsid>
<example>Regional MLS</example>
</xs:appinfo>
</xs:annotation>
</xs:element>
<xs:element name="NRDSInformation"
type="offices:NRDSType"
minOccurs="0"
maxOccurs="1">
<xs:annotation>
<xs:appinfo>
<retsid>100307</retsid>
</xs:appinfo>
</xs:annotation>
</xs:element>
<xs:element name="OfficeMediaItems"
type="media:MediaType"
minOccurs="0"
maxOccurs="1">
<xs:annotation>
<xs:appinfo>
<retsid>100308</retsid>
</xs:appinfo>
</xs:annotation>
</xs:element>
<xs:element name="ModificationTimestamp"
type="commons:ModificationTimestamp"
minOccurs="1"
maxOccurs="1">
<xs:annotation>
<xs:appinfo>
<retsid>100309</retsid>
<example>2007-03-10T12:00:00-05:00</example>
</xs:appinfo>
</xs:annotation>
</xs:element>
</xs:sequence>
<xs:attribute name="systemId"
type="commons:system-id"
use="required">
<xs:annotation>
<xs:documentation>
An identifier of the system that an office
'belongs' to.
</xs:documentation>
<xs:appinfo>
<retsid>100310</retsid>
</xs:appinfo>
</xs:annotation>
</xs:attribute>
</xs:complexType>
<xs:complexType name="OfficesType">
<xs:sequence>
<xs:element ref="offices:Office"
minOccurs="0"
maxOccurs="unbounded">
<xs:annotation>
<xs:documentation>
</xs:documentation>
<xs:appinfo>
<retsid>100311</retsid>
</xs:appinfo>
</xs:annotation>
</xs:element>
</xs:sequence>
<xs:attribute ref="xml:lang"
use="optional">
<xs:annotation>
<xs:documentation>
</xs:documentation>
<xs:appinfo>
<retsid>100312</retsid>
</xs:appinfo>
</xs:annotation>
</xs:attribute>
<xs:attribute name="systemId"
type="commons:system-id"
use="optional">
<xs:annotation>
<xs:documentation>
An identifier of the system that an office
'belongs' to when the event involves more than
one system.
</xs:documentation>
<xs:appinfo>
<retsid>100313</retsid>
</xs:appinfo>
</xs:annotation>
</xs:attribute>
<xs:attribute name="versionTimestamp"
type="xs:dateTime"
use="required"
fixed="2008-03-29T16:00:00Z">
<xs:annotation>
<xs:documentation>
</xs:documentation>
<xs:appinfo>
<retsid>100314</retsid>
</xs:appinfo>
</xs:annotation>
</xs:attribute>
</xs:complexType>
<!-- Elements -->
<xs:element name="Office">
<xs:annotation>
<xs:documentation>
</xs:documentation>
<xs:appinfo>
<retsid>100315</retsid>
</xs:appinfo>
</xs:annotation>
<xs:complexType>
<xs:complexContent>
<xs:extension base="offices:OfficeType">
<xs:sequence>
<xs:any namespace="##any"
processContents="lax"
minOccurs="0"
maxOccurs="unbounded"/>
</xs:sequence>
</xs:extension>
</xs:complexContent>
</xs:complexType>
</xs:element>
<xs:element name="Offices"
type="offices:OfficesType">
<xs:annotation>
<xs:documentation>
</xs:documentation>
<xs:appinfo>
<retsid>100316</retsid>
</xs:appinfo>
</xs:annotation>
</xs:element>
</xs:schema>
|