<?xml version="1.0" encoding="windows-1252" ?>
<xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema"
            xmlns="http://entp.hud.gov" targetNamespace="http://entp.hud.gov"
            elementFormDefault="qualified">
<!-- elements -->
<xsd:element name="EMORTGAGE_PACKAGE" type="envelopePackageType"/>

<!-- complex types -->
<xsd:complexType name="envelopePackageType">
	<xsd:sequence>
		<xsd:element name="KEY" type="keyType"/>
		<xsd:element name="SMART_DOCUMENT" type="smartDocType"/>
		<xsd:element name="HEADER" type="headerType"/>
		<xsd:element name="DATA" type="dataType"/>
	</xsd:sequence>
	<xsd:attribute name="_ID" type="envelopeType"/>
</xsd:complexType>

<xsd:complexType name="keyType">
	<xsd:attribute name="_Name" type="nameType"/>
	<xsd:attribute name="_Value" type="xsd:string"/>
</xsd:complexType>

<xsd:complexType name="smartDocType">
	<xsd:attribute name="MISMOVersionIdentifier" type="MISMOVersionIdentifierType"/>
	<xsd:attribute name="PopulatingSystemDocumentIdentifier" type="PopulatingSystemDocumentIdentifierType"/>
</xsd:complexType>

<xsd:complexType name="headerType">
	<xsd:sequence>
		<xsd:element name="DOCUMENT_INFORMATION" type="docInfoType"/>
	</xsd:sequence>
	<xsd:attribute name="_ID" type="headerIDType"/>
</xsd:complexType>

<xsd:complexType name="docInfoType">
	<xsd:attribute name="MustBeRecordedIndicator" type="MustBeRecordedIndicatorType"/>
	<xsd:attribute name="NegotiableInstrumentIndicator" type="NegotiableInstrumentIndicatorType"/>
	<xsd:attribute name="SMARTDocumentCategoryType" type="SMARTDocumentCategoryTypeType"/>
	<xsd:attribute name="_FormNumberIdentifier" type="FormNumberIdentifierType"/>
	<xsd:attribute name="_StateType" type="StateTypeType"/>
	<xsd:attribute name="_Type" type="docTypeType"/>
	<xsd:attribute name="_TypeOtherDescription" type="docTypeOtherDescriptionType"/>
</xsd:complexType>

<xsd:complexType name="dataType">
	<xsd:sequence>
		<xsd:element name="MAIN" type="mainType"/>
	</xsd:sequence>
	<xsd:attribute name="_ID" type="docIDType"/>
</xsd:complexType>

<xsd:complexType name="mainType">
	<xsd:sequence>
		<xsd:element name="LOAN" type="loanType"/>
	</xsd:sequence>
</xsd:complexType>

<xsd:complexType name="loanType">
	<xsd:sequence>
		<xsd:element name="_APPLICATION" type="appType"/>
	</xsd:sequence>
	<xsd:attribute name="MISMOVersionIdentifier" type="mismoIDType"/>
</xsd:complexType>

<xsd:complexType name="appType">
	<xsd:sequence>
		<xsd:element name="SecondaryFinancing" type="secFinType"/>
	</xsd:sequence>
	<xsd:attribute name="MISMOVersionIdentifier" type="mismoIDType"/>
</xsd:complexType>

<xsd:complexType name="secFinType">
	<xsd:sequence>
		<xsd:element name="SecondaryLender" type="secLenType"/>
	</xsd:sequence>
	<xsd:attribute name="_SecondaryFinancingSource" type="SecondaryFinancingSourceType"/>
	<xsd:attribute name="_SecondaryFinancingAmount" type="xsd:string"/>
	<xsd:attribute name="_SecondaryFinancingPurpose" type="SecondaryFinancingPurposeType"/>
	<xsd:attribute name="_CloseInNonProfitNameIndicator" type="BooleanIndicatorType"/>
	<xsd:attribute name="_NonProfitEIN" type="xsd:string"/>
</xsd:complexType>

<xsd:complexType name="secLenType">
	<xsd:attribute name="_IDTIN" type="idTinType"/>
	<xsd:attribute name="_Value" type="xsd:string"/>
	<xsd:attribute name="_Name" type="xsdstring"/>
</xsd:complexType>


<!-- simple types -->
<xsd:simpleType name="nameType">
	<xsd:restriction base="xsd:string">
		<xsd:enumeration value="TransactionMode"/>
		<xsd:enumeration value="Requestor"/>
		<xsd:enumeration value="FHACaseNumber"/>
		<xsd:enumeration value="Status"/>
		<xsd:enumeration value="StatusMessage"/>
	</xsd:restriction>
</xsd:simpleType>

<xsd:simpleType name="envelopeType">
	<xsd:restriction base="xsd:string">
		<xsd:enumeration value="HUD_BINDER"/>
	</xsd:restriction>
</xsd:simpleType>

<xsd:simpleType name="MISMOVersionIdentifierType">
	<xsd:restriction base="xsd:string">
		<xsd:enumeration value="1.01"/>
	</xsd:restriction>
</xsd:simpleType>

<xsd:simpleType name="headerIDType">
	<xsd:restriction base="xsd:string">
		<xsd:enumeration value="FHAVA_Header"/>
	</xsd:restriction>
</xsd:simpleType>


<xsd:simpleType name="PopulatingSystemDocumentIdentifierType">
	<xsd:restriction base="xsd:string">
		<xsd:enumeration value="FHAVA"/>
	</xsd:restriction>
</xsd:simpleType>

<xsd:simpleType name="MustBeRecordedIndicatorType">
	<xsd:restriction base="xsd:string">
		<xsd:enumeration value="False"/>
	</xsd:restriction>
</xsd:simpleType>

<xsd:simpleType name="NegotiableInstrumentIndicatorType">
	<xsd:restriction base="xsd:string">
		<xsd:enumeration value="False"/>
	</xsd:restriction>
</xsd:simpleType>

<xsd:simpleType name="SMARTDocumentCategoryTypeType">
	<xsd:restriction base="xsd:string">
		<xsd:enumeration value="5"/>
	</xsd:restriction>
</xsd:simpleType>

<xsd:simpleType name="FormNumberIdentifierType">
	<xsd:restriction base="xsd:string">
		<xsd:enumeration value="OMB-2502-0524"/>
	</xsd:restriction>
</xsd:simpleType>

<xsd:simpleType name="StateTypeType">
	<xsd:restriction base="xsd:string">
		<xsd:enumeration value="Populated"/>
	</xsd:restriction>
</xsd:simpleType>

<xsd:simpleType name="docTypeType">
	<xsd:restriction base="xsd:string">
		<xsd:enumeration value="Other"/>
	</xsd:restriction>
</xsd:simpleType>

<xsd:simpleType name="docTypeOtherDescriptionType">
	<xsd:restriction base="xsd:string">
		<xsd:enumeration value="SecondaryFinancing"/>
	</xsd:restriction>
</xsd:simpleType>

<xsd:simpleType name="docIDType">
	<xsd:restriction base="xsd:string">
		<xsd:enumeration value="FHAVA_SECONDARY_FINANCING_REQUEST"/>
	</xsd:restriction>
</xsd:simpleType>

<xsd:simpleType name="mismoIDType">
	<xsd:restriction base="xsd:string">
		<xsd:enumeration value="2.3"/>
	</xsd:restriction>
</xsd:simpleType>

<xsd:simpleType name="SecondaryFinancingSourceType">
	<xsd:restriction base="xsd:string">
		<xsd:enumeration value="N/A"/>
		<xsd:enumeration value="GovernmentNonprofitInstrumentalityofGovernment"/>
		<xsd:enumeration value="NonProfitNotInstrumentalityofGovernment"/>
		<xsd:enumeration value="PrivateOrganizationsEligibleIndividuals"/>
		<xsd:enumeration value="Lender"/>
		<xsd:enumeration value="Section115Entities"/>
		<xsd:enumeration value="FHLB"/>
		<xsd:enumeration value="Government"/>
		<xsd:enumeration value="NonProfitInstrumentalityofGovernment"/>
		<xsd:enumeration value="FamilyRelative"/>
		<xsd:enumeration value="FederalGovernment"/>
		<xsd:enumeration value="FederalGovernmentGNND"/>
	</xsd:restriction>
</xsd:simpleType>

<xsd:simpleType name="SecondaryFinancingPurposeType">
	<xsd:restriction base="xsd:string">
		<xsd:enumeration value="N/A"/>
		<xsd:enumeration value="BorrowerClosingCosts"/>
		<xsd:enumeration value="RequiredMinimumCashInvestment"/>
		<xsd:enumeration value="TaxAbatement"/>
		<xsd:enumeration value="Other"/>
	</xsd:restriction>
</xsd:simpleType>

<xsd:simpleType name="BooleanIndicatorType">
	<xsd:restriction base="xsd:string">
		<xsd:enumeration value="YES"/>
		<xsd:enumeration value="Yes"/>
		<xsd:enumeration value="yes"/>
		<xsd:enumeration value="Y"/>
		<xsd:enumeration value="y"/>
		<xsd:enumeration value="NO"/>
		<xsd:enumeration value="No"/>
		<xsd:enumeration value="no"/>
		<xsd:enumeration value="N"/>
		<xsd:enumeration value="n"/>
	</xsd:restriction>
</xsd:simpleType>

<xsd:simpleType name="idTinType">
	<xsd:restriction base="xsd:string">
		<xsd:enumeration value="ID"/>
		<xsd:enumeration value="TIN"/>
	</xsd:restriction>
</xsd:simpleType>

</xsd:schema>
