<?xml version="1.0" encoding="UTF-8"?>
<!-- edited with XML Spy v4.4 U (http://www.xmlspy.com) by David Wu (Builder Homesite Inc.) -->
<!-- NHS Lead XML Schema 3.2 -->
<!-- The XML Schema makes full use of the current tab-separated/plain text lead format.  We try to keep the XML leads compatible in content with the text leads,  so builders can have the choice of either format, and may acquire the same amount information.   -->
<!-- See Consumer Leads Reporting for deatils. -->
<xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema" elementFormDefault="qualified" attributeFormDefault="unqualified">
	<xsd:element name="BHILeads">
		<xsd:annotation>
			<xsd:documentation>This is the containing element of BHILeads</xsd:documentation>
		</xsd:annotation>
		<xsd:complexType>
			<xsd:sequence>
				<xsd:element name="Lead" maxOccurs="unbounded">
					<xsd:annotation>
						<xsd:documentation>Individual lead element</xsd:documentation>
					</xsd:annotation>
					<xsd:complexType>
						<xsd:sequence>
							<xsd:element name="Contact">
								<xsd:annotation>
									<xsd:documentation>Contact information of the lead customer</xsd:documentation>
								</xsd:annotation>
								<xsd:complexType>
									<xsd:attribute name="Title" type="xsd:string" use="optional"/>
									<xsd:attribute name="FirstName" type="xsd:string" use="optional"/>
									<xsd:attribute name="LastName" type="xsd:string" use="optional"/>
									<xsd:attribute name="Email" use="optional">
										<xsd:simpleType>
											<xsd:restriction base="xsd:string"/>
										</xsd:simpleType>
									</xsd:attribute>
									<xsd:attribute name="Phone" type="xsd:string" use="optional"/>
									<xsd:attribute name="StreetAddress" type="xsd:string" use="optional"/>
									<xsd:attribute name="City" type="xsd:string" use="optional"/>
									<xsd:attribute name="State" use="optional">
										<xsd:simpleType>
											<xsd:restriction base="xsd:string">
												<xsd:maxLength value="2"/>
											</xsd:restriction>
										</xsd:simpleType>
									</xsd:attribute>
									<xsd:attribute name="PostalCode" use="optional">
										<xsd:simpleType>
											<xsd:restriction base="xsd:string"/>
										</xsd:simpleType>
									</xsd:attribute>
									<xsd:attribute name="Country" type="xsd:string" use="optional" default="USA"/>
								</xsd:complexType>
							</xsd:element>
							<xsd:element name="Qualifications" minOccurs="0">
								<xsd:annotation>
									<xsd:documentation>Customer selected assisting information</xsd:documentation>
								</xsd:annotation>
								<xsd:complexType>
									<xsd:attribute name="PrefPriceLow" type="xsd:int" use="optional"/>
									<xsd:attribute name="PrefPriceHigh" type="xsd:int" use="optional"/>
									<xsd:attribute name="Financing" use="optional">
										<xsd:simpleType>
											<xsd:restriction base="xsd:string"/>
										</xsd:simpleType>
									</xsd:attribute>
									<xsd:attribute name="ReasonsForBuying" use="optional">
										<xsd:simpleType>
											<xsd:restriction base="xsd:string"/>
										</xsd:simpleType>
									</xsd:attribute>
									<xsd:attribute name="MoveInDate" type="xsd:string" use="optional"/>
									<xsd:attribute name="Comments" type="xsd:string" use="optional"/>
								</xsd:complexType>
							</xsd:element>
							<xsd:element name="PropertyInterest">
								<xsd:annotation>
									<xsd:documentation>Home/Community requested by customer</xsd:documentation>
								</xsd:annotation>
								<xsd:complexType>
									<xsd:attribute name="StateName" type="xsd:string" use="required"/>
									<xsd:attribute name="MarketName" type="xsd:string" use="required"/>
									<xsd:attribute name="BuilderNumber" type="xsd:string" use="optional"/>
									<xsd:attribute name="BuilderName" type="xsd:string" use="required"/>
									<xsd:attribute name="CommunityNumber" type="xsd:string" use="optional"/>
									<xsd:attribute name="CommunityName" type="xsd:string" use="optional"/>
									<xsd:attribute name="MasterCommunity" type="xsd:string" use="optional"/>
									<xsd:attribute name="PlanNumber" type="xsd:string" use="optional"/>
									<xsd:attribute name="PlanName" type="xsd:string" use="optional"/>
									<xsd:attribute name="Options" type="xsd:string" use="optional"/>
									<xsd:attribute name="SpecNumber" type="xsd:string" use="optional"/>
									<xsd:attribute name="SpecAddress" type="xsd:string" use="optional"/>
									<xsd:attribute name="Price" type="xsd:decimal" use="optional"/>
								</xsd:complexType>
							</xsd:element>
							<xsd:element name="Telemetry">
								<xsd:annotation>
									<xsd:documentation>Extended service information</xsd:documentation>
								</xsd:annotation>
								<xsd:complexType>
									<xsd:attribute name="CountElements" type="xsd:int" use="required"/>
									<xsd:attribute name="LeadDetails" type="xsd:string" use="optional"/>
								</xsd:complexType>
							</xsd:element>
						</xsd:sequence>
						<xsd:attribute name="Source" use="required">
							<xsd:simpleType>
								<xsd:restriction base="xsd:string"/>
							</xsd:simpleType>
						</xsd:attribute>
						<xsd:attribute name="LeadType" use="required">
							<xsd:simpleType>
								<xsd:restriction base="xsd:string">
									<xsd:enumeration value="Rec. Community"/>
									<xsd:enumeration value="Community"/>
									<xsd:enumeration value="Home"/>
									<xsd:enumeration value="BuildOnYourLot"/>
								</xsd:restriction>
							</xsd:simpleType>
						</xsd:attribute>
					</xsd:complexType>
				</xsd:element>
			</xsd:sequence>
		</xsd:complexType>
	</xsd:element>
	<xsd:complexType name="ContactType">
		<xsd:attribute name="Title" use="optional">
			<xsd:simpleType>
				<xsd:restriction base="xsd:string">
					<xsd:maxLength value="50"/>
				</xsd:restriction>
			</xsd:simpleType>
		</xsd:attribute>
		<xsd:attribute name="FirstName" use="optional">
			<xsd:simpleType>
				<xsd:restriction base="xsd:string">
					<xsd:maxLength value="200"/>
				</xsd:restriction>
			</xsd:simpleType>
		</xsd:attribute>
		<xsd:attribute name="LastName" use="optional">
			<xsd:simpleType>
				<xsd:restriction base="xsd:string">
					<xsd:maxLength value="200"/>
				</xsd:restriction>
			</xsd:simpleType>
		</xsd:attribute>
		<xsd:attribute name="Email" use="optional">
			<xsd:simpleType>
				<xsd:restriction base="xsd:string"/>
			</xsd:simpleType>
		</xsd:attribute>
		<xsd:attribute name="Phone" type="xsd:string" use="optional"/>
		<xsd:attribute name="StreetAddress" type="xsd:string" use="optional"/>
		<xsd:attribute name="City" type="xsd:string" use="optional"/>
		<xsd:attribute name="State" use="optional">
			<xsd:simpleType>
				<xsd:restriction base="xsd:string">
					<xsd:length value="2"/>
				</xsd:restriction>
			</xsd:simpleType>
		</xsd:attribute>
		<xsd:attribute name="PostalCode" use="optional">
			<xsd:simpleType>
				<xsd:restriction base="xsd:string">
					<xsd:pattern value="\d{5}(-\d{4})*"/>
				</xsd:restriction>
			</xsd:simpleType>
		</xsd:attribute>
		<xsd:attribute name="Country" type="xsd:string" use="optional" default="USA"/>
	</xsd:complexType>
	<xsd:complexType name="QualificationsType">
		<xsd:attribute name="PrefPriceLow" type="xsd:decimal" use="optional"/>
		<xsd:attribute name="PrefPriceHigh" type="xsd:decimal" use="optional"/>
		<xsd:attribute name="Financing" use="optional">
			<xsd:simpleType>
				<xsd:restriction base="xsd:string"/>
			</xsd:simpleType>
		</xsd:attribute>
		<xsd:attribute name="ReasonsForBuying" type="xsd:string" use="optional"/>
		<xsd:attribute name="MoveInDate" type="xsd:string" use="optional"/>
		<xsd:attribute name="Comments" type="xsd:string" use="optional"/>
	</xsd:complexType>
	<xsd:complexType name="PropertyInterestType">
		<xsd:attribute name="StateName" type="xsd:string" use="required"/>
		<xsd:attribute name="MarketName" type="xsd:string" use="required"/>
		<xsd:attribute name="BuilderNumber" type="xsd:string" use="optional"/>
		<xsd:attribute name="BuilderName" type="xsd:string" use="required"/>
		<xsd:attribute name="CommunityNumber" type="xsd:string" use="optional"/>
		<xsd:attribute name="CommunityName" type="xsd:string" use="optional"/>
		<xsd:attribute name="MasterCommunity" type="xsd:string" use="optional"/>
		<xsd:attribute name="PlanNumber" type="xsd:string" use="optional"/>
		<xsd:attribute name="Options" type="xsd:string" use="optional"/>
		<xsd:attribute name="SpecNumber" type="xsd:string" use="optional"/>
		<xsd:attribute name="SpecAddress" type="xsd:string" use="optional"/>
		<xsd:attribute name="Price" type="xsd:string" use="optional"/>
	</xsd:complexType>
	<xsd:complexType name="TelemetryType">
		<xsd:attribute name="CountElements" type="xsd:int" use="required"/>
		<xsd:attribute name="LeadDetails" type="xsd:string" use="optional"/>
	</xsd:complexType>
</xsd:schema>
