<?xml version="1.0"?>
<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:xhtml="http://www.w3.org/1999/xhtml">
<!--
           These are the datatype definitions that are unique to Microloans, 
				and wouldn't be used by other SBA systems. 
				For example, other systems at the SBA which allow XML updates might have use for 
				SBA_BusPerInd, 
				SBA_TaxId 
				and even loan related types such as SBA_FixVarInd. 
				It promotes sharing more if potentially sharable types are in SBA_SimpleTypes, not here.
    -->      
	<xs:simpleType name="SBA_MicroloanVersions">
		
		<xs:restriction base="xs:string">
			<xs:enumeration value="1.0">
            <xs:annotation>
            <xs:documentation value="1.0">
			
           
            Changes documented in SBA_MicroloanTypes.xsd (this file):
            &lt;ol&gt;&lt;li&gt;
			Added this 1.0 enumeration. 
             &lt;/li&gt;&lt;/ol&gt;
			Changes documented in SBA_MicroloanOrigination.1.0.xsd (Origination):
			&lt;ol&gt;&lt;li&gt;
            	Added many new child elements to Loan,Primary Borrower Related, Borrower Business Related (Give if BusinessPersonInd is B.),Borrower Person Related (Give if BusinessPersonInd is P.) and UseOfProceeds (purpose of the loan).
			 &lt;/li&gt;&lt;/ol&gt; 
            Changes documented in SBA_MicroloanServicing.1.0.xsd (Servicing):
            &lt;ol&gt;&lt;li&gt;
				Added many new child elements to Loan.
             &lt;/li&gt;&lt;/ol&gt; 
             </xs:documentation>
              </xs:annotation>
              </xs:enumeration>
              <xs:enumeration value="1.1">
            <xs:annotation>
            <xs:documentation value="1.1">
            &lt;p&gt;Publication Date: 02/27/2017.&lt;/p&gt;
		Changes documented in SBA_MicroloanTypes.xsd (this file):
            &lt;ol&gt;&lt;li&gt;
			Added this 1.1 enumeration. 
             &lt;/li&gt;&lt;/ol&gt;
			Changes documented in SBA_MicroloanOrigination.1.1.xsd (Origination):
			&lt;ol&gt;&lt;li&gt;
            	Added new child elements to Loan, Added Currently on Parole/Probation Indicator and Online lending indicator. 
                
             &lt;/li&gt;&lt;/ol&gt; 
            Changes documented in SBA_MicroloanServicing.1.1.xsd (Servicing):
            &lt;ol&gt;&lt;li&gt;
				Added many new child elements to Loan.
             &lt;/li&gt;&lt;/ol&gt; 
				
             </xs:documentation>
              </xs:annotation>
              </xs:enumeration>
              <xs:enumeration value="1.2">
            <xs:annotation>
            <xs:documentation value="1.2">
			 &lt;p&gt;Publication Date: 07/14/2020.&lt;/p&gt;
          Changes documented in SBA_MicroloanTypes.xsd (this file):
            &lt;ol&gt;&lt;li&gt;
			Added this 1.2 enumeration. 
             &lt;/li&gt;&lt;/ol&gt;
			Changes documented in SBA_MicroloanOrigination.1.2.xsd (Origination):
			&lt;ol&gt;&lt;li&gt;
            	Added  new child elements to Loan,Added Number of Current Employees and Rural Urban Indicator .
			 &lt;/li&gt;&lt;/ol&gt; 
           
             </xs:documentation>
              </xs:annotation>
              </xs:enumeration>
              <xs:enumeration value="1.3">
            <xs:annotation>
            <xs:documentation value="1.3">
			 &lt;p&gt;Publication Date: 02/17/2022.&lt;/p&gt;
          Changes documented in SBA_MicroloanTypes.xsd (this file):
            &lt;ol&gt;&lt;li&gt;
			Added this 1.3 enumeration. 
             &lt;/li&gt;&lt;/ol&gt;
			Changes documented in SBA_MicroloanOrigination.1.3.xsd (Origination):
			&lt;ol&gt;&lt;li&gt;
            	Added new child elements to Loan,Added Economic Distressed Area Indicator. &lt;/li&gt;&lt;/ol&gt; 
            
             </xs:documentation>
              </xs:annotation>
              </xs:enumeration>
		</xs:restriction>
        
	</xs:simpleType>
	<xs:simpleType name="SBA_NewOldInd">	
	<!--New (startup) or Old (existing business) Indicator-->
		<xs:restriction base="xs:string">
			<xs:minLength value="0"/>
			<xs:maxLength value="3"/>
			<xs:enumeration value="New"/>
			<xs:enumeration value="Old"/>
		</xs:restriction>
	</xs:simpleType>
</xs:schema>
