<?xml version="1.0" encoding="windows-1252" ?>
<!-- Model the input and output from the "MORTGAGEDATA" element. -->
<xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema"
	xmlns="http://entp.hud.gov/borrowerAddressChange"
	targetNamespace="http://entp.hud.gov/borrowerAddressChange"
	elementFormDefault="qualified">

<!-- elements -->
<xsd:element name="process" type="inputType"/>
<xsd:element name="results" type="outputType"/>

<!-- complex types -->

<xsd:complexType name="inputType">
	<xsd:sequence>
		<xsd:element name="MORTGAGEDATA" type="mortgageDataInputType"/>
	</xsd:sequence>
</xsd:complexType>

<xsd:complexType name="outputType">
	<xsd:sequence>
		<xsd:element name="MORTGAGEDATA" type="mortgageDataOutputType"/>
	</xsd:sequence>
</xsd:complexType>

<xsd:complexType name="mortgageDataInputType">
	<xsd:sequence>
		<xsd:element name="PROCESSSTATUS" type="ProcessStatusInputType"/>
	</xsd:sequence>
	<xsd:attribute name="MISMOVersionID" type="xsd:string"/>
</xsd:complexType>

<xsd:complexType name="mortgageDataOutputType">
	<xsd:sequence>
		<xsd:element name="PROCESSSTATUS" type="ProcessStatusOutputType"/>
	</xsd:sequence>
	<xsd:attribute name="MISMOVersionID" type="xsd:string"/>
</xsd:complexType>

<xsd:complexType name="ProcessStatusInputType">
	<xsd:sequence>
		<xsd:element name="ProcessStatusRequestor" type="xsd:string"/>
		<xsd:element name="UserAuthorizationPassword" type="xsd:string"/>
	</xsd:sequence>
</xsd:complexType>

<xsd:complexType name="ProcessStatusOutputType">
	<xsd:sequence>
		<xsd:element name="ProcessStatusCode" type="ProcessStatusCodeOutputType"/>
		<xsd:element name="ProcessStatusMessage" type="psmType" minOccurs="1" maxOccurs="unbounded"/>
	</xsd:sequence>
</xsd:complexType>

<xsd:complexType name="psmType">
        <xsd:simpleContent>
            <xsd:extension base="xsd:string">
                <xsd:attribute name="sCode" type="xsd:integer"/>
            </xsd:extension>
        </xsd:simpleContent>
</xsd:complexType>

<xsd:simpleType name="ProcessStatusCodeOutputType">
	<xsd:restriction base="xsd:string">
		<xsd:enumeration value="Success"/>
		<xsd:enumeration value="Error"/>
		<xsd:enumeration value="UNAVAILABLE"/>
	</xsd:restriction>
</xsd:simpleType>

</xsd:schema>