<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:f="http://finra.org/SharedServices/FSF/Forms/REGT" targetNamespace="http://finra.org/SharedServices/FSF/Forms/REGT" elementFormDefault="qualified" attributeFormDefault="qualified">
    <xs:complexType name="RegTFilingType">
        <xs:sequence>
            <xs:element name="FilingRefInfo">
                <xs:complexType>
                    <xs:sequence>
                        <xs:element name="FilingFirmCrd" type="xs:positiveInteger">
                            <xs:annotation>
                                <xs:documentation>CRD number of the firm for whom this filing is being made.</xs:documentation>
                            </xs:annotation>
                        </xs:element>
                        <xs:element name="FINRAFilingID" type="f:EmptyPositiveIntegerType">
                            <xs:annotation>
                                <xs:documentation>On inbound files, this field is reserved for future use (will allow submitter of amendment to link back to specific FINRA filing). On outbound files (e.g., reports sent back to submitters), this field will contain the FINRA Filing ID for the extension request.</xs:documentation>
                            </xs:annotation>
                        </xs:element>
                        <xs:element name="FINRAVersionNumber" type="f:EmptyPositiveIntegerType">
                            <xs:annotation>
                                <xs:documentation>On inbound files, this field is reserved for future use (will allow submitter of amendment to link back to specific FINRA filing). On outbound files (e.g., reports sent back to submitters), this field will contain the FINRA Filing ID for the extension request.</xs:documentation>
                            </xs:annotation>
                        </xs:element>
                        <xs:element name="RequestAction" type="f:RequestActionType">
                            <xs:annotation>
                                <xs:documentation>Used to indicate if the current extension request is an Amendment or a New extension request. Note that if Amendment is selected, it means the submitter is correcting an error in a previously submitted extension request. Creating a "follow-on" (or "subsequent extension," "second extension," "third extension," ...) for an expired extension request is NOT an Amendment. It is considered a New extension request (albeit a new extension request that is requesting additional time for the expired request). Note that Amendments for an extension request are expected to be submitted within one business day following the submission of the original extension request.</xs:documentation>
                            </xs:annotation>
                        </xs:element>
                    </xs:sequence>
                </xs:complexType>
            </xs:element>
            <xs:element name="GeneralInfo">
                <xs:complexType>
                    <xs:sequence>
                        <xs:element name="RequestType" type="f:RequestTypeType"/>
                        <xs:element name="RuleType" type="f:RuleTypeType">
                            <xs:annotation>
                                <xs:documentation>Relevant paragraph of SEC Rule 15c3-3 to which this extension request relates. See enumeration list for valid values.</xs:documentation>
                            </xs:annotation>
                        </xs:element>
                        <xs:element name="ReasonCode" type="f:ReasonCodeType"/>
                        <xs:element name="DaysRequested" type="f:nonNegativeIntegerTo99"/>
                        <xs:element name="RequestDate" type="xs:date">
                            <xs:annotation>
                                <xs:documentation>Should equal date of the submission. On "Subsequent", "Secondary", or "Follow-On" requests, RequestDate must reflect the RequestDate *of the original filing.*</xs:documentation>
                            </xs:annotation>
                        </xs:element>
                        <xs:element name="RequestNumber" type="f:positiveIntegerTo99">
                            <xs:annotation>
                                <xs:documentation>A RequestNumber greater than 1 reflects a "Subsequent", "Secondary" or "Follow-On" request to an original extension of time request. On a Follow-On request, *only the following fields may differ from their values in the original request*: DaysRequested, SubmitterFilingReferenceID, ShareQuantity and ShareAmount (both of which may only be less than or equal to their values in original filing), Comment, and ReasonCode (in some cases only).</xs:documentation>
                            </xs:annotation>
                        </xs:element>
                        <xs:element name="Comment">
                            <xs:annotation>
                                <xs:documentation>Comment is required if this filing is an Amendment; if filing is not an Amendment, this element may be left blank. Submitters must include in this field a detailed explanation of the reason for the amendment.</xs:documentation>
                            </xs:annotation>
                            <xs:simpleType>
                                <xs:restriction base="xs:string">
                                    <xs:maxLength value="255"/>
                                </xs:restriction>
                            </xs:simpleType>
                        </xs:element>
                        <xs:element name="ReceivedBy" type="f:ReceivedByType">
                            <xs:annotation>
                                <xs:documentation>For XML Batch submissions, this should always be BatchV2</xs:documentation>
                            </xs:annotation>
                        </xs:element>
                        <xs:element name="WithDrawnFlag" type="xs:boolean">
                            <xs:annotation>
                                <xs:documentation>Should be set to True when a firm is withdrawing a previously submitted extension request. A withdrawal is considered an amendment, and therefore the submitter must complete the Submitter Comment field as to why the extension request is being withdrawn. This field should be set to False unless the intent is to withdraw the extension request.
                                </xs:documentation>
                            </xs:annotation>
                        </xs:element>
                        <xs:element name="SubmitterFilingReferenceID">
                            <xs:annotation>
                                <xs:documentation>Allows submitter to include its own identifier for this extension request for firm internal tracking purposes. Maintained and may be available for searching by FINRA systems, but otherwise unused.</xs:documentation>
                            </xs:annotation>
                            <xs:simpleType>
                                <xs:restriction base="xs:string">
                                    <xs:maxLength value="24"/>
                                </xs:restriction>
                            </xs:simpleType>
                        </xs:element>
                    </xs:sequence>
                </xs:complexType>
            </xs:element>
            <xs:element name="TradeInfo">
                <xs:complexType>
                    <xs:sequence>
                        <xs:element name="TradeDate" type="f:EmptyDateType"/>
                        <xs:element name="SettlementDate" type="f:EmptyDateType"/>
                        <xs:element name="ProductCode" type="f:ProductCodeType">
                            <xs:annotation>
                                <xs:documentation>The type of product traded for which an extension of payment is being requested (e.g., the type of product identified by the Issue Symbol/CUSIP field value).  Firms must select one of the following values: Equity, Option, Derivative, Mutual fund, Bond. In the case of multiple trades, firms must choose one product code, Issue Symbol/CUSIP, and share amount, and enter the aggregate value of all of the trades in the submission for that account. Empty value is allowed to accomodate 4210.</xs:documentation>
                            </xs:annotation>
                        </xs:element>
                        <xs:element name="IssueSymbol">
                            <xs:annotation>
                                <xs:documentation>In the event of multiple trades executed for same customer account on same trade date: The amount field should be populated with the net debit created on that trade date. For Regulation T extension requests, if this total amount is $1000 or less, then no extension request is required. If a secondary extension request is made, the total dollar amount must not exceed the value on the original request. The quantity and issue symbol/CUSIP fields need only be populated with the details from one of the transactions, regardless of whether different securities or issuers are involved.</xs:documentation>
                            </xs:annotation>
                            <xs:simpleType>
                                <xs:restriction base="xs:string">
                                    <xs:maxLength value="14"/>
                                </xs:restriction>
                            </xs:simpleType>
                        </xs:element>
                        <xs:element name="Cusip">
                            <xs:annotation>
                                <xs:documentation>See documentation for IssueSymbol element.</xs:documentation>
                            </xs:annotation>
                            <xs:simpleType>
                                <xs:restriction base="xs:string">
                                    <xs:maxLength value="16"/>
                                </xs:restriction>
                            </xs:simpleType>
                        </xs:element>
                        <xs:element name="ShareAmount">
                            <xs:annotation>
                                <xs:documentation>The total dollar amount of credit extended to this account for the specified trade date. For Regulation T extension requests, if less than or equal to $1000, no extension request is necessary. On a second ("secondary", "follow-on" or "subsequent") extension request for a given transaction, the total dollar amount must not exceed the value on the original request.</xs:documentation>
                            </xs:annotation>
                            <xs:simpleType>
                                <xs:restriction base="xs:decimal">
                                    <xs:fractionDigits value="2"/>
                                    <xs:minInclusive value="0.00"/>
                                    <xs:maxInclusive value="99999999999999.99"/>
                                </xs:restriction>
                            </xs:simpleType>
                        </xs:element>
                        <xs:element name="ShareQuantity" type="f:ShareQuantityType">
                            <xs:annotation>
                                <xs:documentation>In the case of multiple transactions for same customer on same date, enter just the number of shares or contracts associated with the IssueSymbol or CUSIP entered above.</xs:documentation>
                            </xs:annotation>
                        </xs:element>
                        <xs:element name="IssueStatus" type="f:IssueStatusType">
                            <xs:annotation>
                                <xs:documentation>Corresponds to the "New Issue?" question on the UI. For New issues (IssueStatus = true/yes), RequestDate should be 5 days from SettlementDate</xs:documentation>
                            </xs:annotation>
                        </xs:element>
                    </xs:sequence>
                </xs:complexType>
            </xs:element>
            <xs:element name="BrokerInfo">
                <xs:complexType>
                    <xs:sequence>
                        <xs:element name="CorrespondentFirmType" type="f:CorrespondentFirmTypeType">
                            <xs:annotation>
                                <xs:documentation>Firms must indicate if the extension is being submitted on behalf of a correspondent firm. This element is a modification of the Correspondent Firm Flag data element present in the legacy Reg T system. Firms must select one of the following values: Domestic (if this value is selected, the Correspondent Firm CRD Number, the Correspondent Branch CRD Number, Customer Contact CRD Type and, possibly, Customer Contact CRD ID fields must be completed); Foreign (if this value is selected, the name of the foreign correspondent broker-dealer must be submitted in the new Foreign IB Name data field); or None (if this value is selected, the Branch CRD Number of the clearing firm, Customer Contact CRD Type and, possibly, Customer Contact CRD ID fields must be completed).</xs:documentation>
                            </xs:annotation>
                        </xs:element>
                        <xs:element name="CorrespondentFirmCrd" type="f:EmptyPositiveIntegerType">
                            <xs:annotation>
                                <xs:documentation>See notes for CorrespondentFirmType field. Required for all Regulation T and SEC Rule 15c3-3(m) requests when CorrespondentFirmType = "Domestic."</xs:documentation>
                            </xs:annotation>
                        </xs:element>
                        <xs:element name="BranchCrd" type="f:EmptyPositiveIntegerType">
                            <xs:annotation>
                                <xs:documentation>Branch CRD number depending on value of CorrespondentFirmType - if CorrespondentFirmType = "Domestic," this is the Correspondent Firm branch ID; if CorrespondentFirmType = "None," this is the Clearing firm branch ID. If CorrespondentFirmType = "Foreign," then this field will be empty.</xs:documentation>
                            </xs:annotation>
                        </xs:element>
                        <xs:element name="CustomerContactCode" type="f:CustomerContactCodeType">
                            <xs:annotation>
                                <xs:documentation>Indicates the type of ID of the individual assigned to the account, if any. Firms must select one of the following values: RegisteredRep (if this value is selected, the Registered Representative's CRD number must be provided in the Customer Contact ID field); or SelfDirected (this option is reserved explicitly for online accounts that are self directed and do not have a Registered Representative assigned to the account). If the extension of time request relates to paragraph (d)(2),(d)(3), or (h) of SEA Rule 15c3-3 this field is not required. This field is also not required when the Correspondent Firm Type is Foreign.</xs:documentation>
                            </xs:annotation>
                        </xs:element>
                        <xs:element name="CustomerContactID" type="f:EmptyPositiveIntegerType">
                            <xs:annotation>
                                <xs:documentation>ID of the Registered Rep who is the point of contact for the customer account. Required for all Regulation T and SEC Rule 15c3-3(m) requests.</xs:documentation>
                            </xs:annotation>
                        </xs:element>
                        <xs:element name="ForeignIBName">
                            <xs:annotation>
                                <xs:documentation>Foreign correspondent firm name must be provided if the extension is being requested on behalf of a foreign correspondent firm and the Correspondent Firm Type indicator has been set to Foreign. It is important to be consistent when submitting names in this field. For example, please do not use "Acme, Inc." in one extension request, and "Acme, Incorporated" in another extension request for the same firm.</xs:documentation>
                            </xs:annotation>
                            <xs:simpleType>
                                <xs:restriction base="xs:string">
                                    <xs:maxLength value="50"/>
                                </xs:restriction>
                            </xs:simpleType>
                        </xs:element>
                    </xs:sequence>
                </xs:complexType>
            </xs:element>
            <xs:element name="CustomerInfo">
                <xs:complexType>
                    <xs:sequence>
                        <xs:element name="CustomerType" type="f:CustomerTypeType">
                            <xs:annotation>
                                <xs:documentation>Required for all Regulation T and SEC Rule 15c3-3(m) requests.</xs:documentation>
                            </xs:annotation>
                        </xs:element>
                        <xs:element name="SsnTin">
                            <xs:annotation>
                                <xs:documentation>Required for all Regulation T and SEC Rule 15c3-3(m) requests, where CustomerType = "DomesticIndividual" or "DomesticCompany"; for the former, this field should contain SSN; for the latter, this field should contain TIN.</xs:documentation>
                            </xs:annotation>
                            <xs:simpleType>
                                <xs:restriction base="xs:string">
                                    <xs:maxLength value="9"/>
                                </xs:restriction>
                            </xs:simpleType>
                        </xs:element>
                        <xs:element name="AccountNumber">
                            <xs:annotation>
                                <xs:documentation>The customer account number at the broker-dealer filing the extension request. Required for all Regulation T and SEC Rule 15c3-3(m) requests</xs:documentation>
                            </xs:annotation>
                            <xs:simpleType>
                                <xs:restriction base="xs:string">
                                    <xs:maxLength value="30"/>
                                </xs:restriction>
                            </xs:simpleType>
                        </xs:element>
                        <xs:element name="AccountType" type="f:AccountTypeType"/>
                        <xs:element name="FirstName">
                            <xs:annotation>
                                <xs:documentation>Required if CustomerType is DomesticIndividual or ForeignIndividual.</xs:documentation>
                            </xs:annotation>
                            <xs:simpleType>
                                <xs:restriction base="xs:string">
                                    <xs:maxLength value="25"/>
                                </xs:restriction>
                            </xs:simpleType>
                        </xs:element>
                        <xs:element name="MiddleName">
                            <xs:annotation>
                                <xs:documentation>Middle initial only - note length restriction</xs:documentation>
                            </xs:annotation>
                            <xs:simpleType>
                                <xs:restriction base="xs:string">
                                    <xs:maxLength value="1"/>
                                </xs:restriction>
                            </xs:simpleType>
                        </xs:element>
                        <xs:element name="LastName">
                            <xs:annotation>
                                <xs:documentation>Required if CustomerType is DomesticIndividual or ForeignIndividual.</xs:documentation>
                            </xs:annotation>
                            <xs:simpleType>
                                <xs:restriction base="xs:string">
                                    <xs:maxLength value="25"/>
                                </xs:restriction>
                            </xs:simpleType>
                        </xs:element>
                        <xs:element name="CompanyName">
                            <xs:annotation>
                                <xs:documentation>Required if CustomerType is DomesticCompany or ForeignCompany.</xs:documentation>
                            </xs:annotation>
                            <xs:simpleType>
                                <xs:restriction base="xs:string">
                                    <xs:maxLength value="36"/>
                                </xs:restriction>
                            </xs:simpleType>
                        </xs:element>
                    </xs:sequence>
                </xs:complexType>
            </xs:element>
            <xs:element name="FirmToFirmInfo">
                <xs:complexType>
                    <xs:sequence>
                        <xs:element name="DeficiencyDate" type="f:EmptyDateType">
                            <xs:annotation>
                                <xs:documentation>Required for SEC Rule 15c3-3(d)(2) or (d)(3) extension requests. Reflects the date that the firm discovered the deficiency. Deficiency date should be one or two business day prior to the extension request date.</xs:documentation>
                            </xs:annotation>
                        </xs:element>
                        <xs:element name="PayableDate" type="f:EmptyDateType">
                            <xs:annotation>
                                <xs:documentation>Date on which dividends are to be paid if RuleType is (d)(3).</xs:documentation>
                            </xs:annotation>
                        </xs:element>
                        <xs:element name="ReceivableFrom">
                            <xs:annotation>
                                <xs:documentation>Name of the party from whom the dividend, stock split, etc. is due if RuleType is (d)(3).</xs:documentation>
                            </xs:annotation>
                            <xs:simpleType>
                                <xs:restriction base="xs:string">
                                    <xs:maxLength value="50"/>
                                </xs:restriction>
                            </xs:simpleType>
                        </xs:element>
                        <xs:element name="ContraIDCode" type="f:ContraIDCodeType">
                            <xs:annotation>
                                <xs:documentation>This field is a modification of the Contra Broker Dealer CRD Number field from the legacy Reg T system. This field indicates the type of identification number provided for the broker-dealer failing to deliver the securities. Firms must select one of the following values: CRD (if this value is selected, the Contra ID field must contain the CRD number of the contra firm) OR DTCC (if this value is selected, the Contra ID field must contain the DTCC number of the contra firm).
</xs:documentation>
                            </xs:annotation>
                        </xs:element>
                        <xs:element name="ContraID" type="f:EmptyPositiveIntegerType">
                            <xs:annotation>
                                <xs:documentation>For filings of RuleType (d)(2), this field will contain CRD or NSCC number (depending upon value of ContraIDCode field) of the broker-dealer failing to deliver the securities.</xs:documentation>
                            </xs:annotation>
                        </xs:element>
                    </xs:sequence>
                </xs:complexType>
            </xs:element>
            <xs:element name="DeficitAllocationInfo" minOccurs="0" maxOccurs="1">
                <xs:annotation>
                    <xs:documentation>Per the June 2014 Notice to Members, entry 08-32: Firms must indicate the relevant
                        paragraph (d)(2),(d)(3),(d)(4),(h) or (m) of SEC Rule 15c3-3 to which the extension of time
                        request relates.
                    </xs:documentation>
                </xs:annotation>
                <xs:complexType>
                    <xs:sequence>
                        <xs:element name="PABAllocatedQuantity" type="xs:string">
                            <xs:annotation>
                                <xs:documentation>This field indicates the Share Quantity allocated to the Proprietary
                                    Accounts of the Broker Dealer.
                                </xs:documentation>
                            </xs:annotation>
                        </xs:element>
                        <xs:element name="FirmInventoryAllocatedQuantity" type="xs:string"/>
                        <xs:element name="CustomerAllocatedQuantity" type="xs:string"/>
                        <xs:element name="NonCustomerAllocatedQuantity" type="xs:string"/>
                    </xs:sequence>
                </xs:complexType>
            </xs:element>
        </xs:sequence>
    </xs:complexType>
    <xs:simpleType name="ContraIDCodeType">
        <xs:restriction base="xs:string">
            <xs:enumeration value="CRD"/>
            <xs:enumeration value="DTCC"/>
            <xs:enumeration value=""/>
        </xs:restriction>
    </xs:simpleType>
    <xs:simpleType name="RuleTypeType">
        <xs:annotation>
            <xs:documentation>Per the June 2008 Notice to Members, entry 08-32: Firms must indicate the relevant paragraph (d)(2),(d)(3),(h) or (m) of SEC Rule 15c3-3 to which the extension of time request relates.</xs:documentation>
        </xs:annotation>
        <xs:restriction base="xs:string">
            <xs:enumeration value="D4">
                <xs:annotation>
                    <xs:documentation>Paragraph (d)(4)</xs:documentation>
                </xs:annotation>
            </xs:enumeration>
            <xs:enumeration value="D3">
                <xs:annotation>
                    <xs:documentation>Paragraph (d)(3)</xs:documentation>
                </xs:annotation>
            </xs:enumeration>
            <xs:enumeration value="D2">
                <xs:annotation>
                    <xs:documentation>Paragraph (d)(2)</xs:documentation>
                </xs:annotation>
            </xs:enumeration>
            <xs:enumeration value="H">
                <xs:annotation>
                    <xs:documentation>Paragraph (h)</xs:documentation>
                </xs:annotation>
            </xs:enumeration>
            <xs:enumeration value="M">
                <xs:annotation>
                    <xs:documentation>Paragraph (m)</xs:documentation>
                </xs:annotation>
            </xs:enumeration>
            <xs:enumeration value=""/>
        </xs:restriction>
    </xs:simpleType>
    <xs:simpleType name="RequestTypeType">
        <xs:restriction base="xs:string">
            <xs:enumeration value="REGT"/>
            <xs:enumeration value="15C3"/>
            <xs:enumeration value="4210"/>
        </xs:restriction>
    </xs:simpleType>
    <xs:simpleType name="ReceivedByType">
        <xs:restriction base="xs:string">
            <xs:enumeration value="BatchV1">
                <xs:annotation>
                    <xs:documentation>Legacy flat file format - FINRA converts flat file to XML; the BatchV1 value is only applied to those XML files generated by FINRA from a legacy flat file submission. In other words, an XML submitter will never set ReceivedBy to BatchV1 value.</xs:documentation>
                </xs:annotation>
            </xs:enumeration>
            <xs:enumeration value="BatchV2">
                <xs:annotation>
                    <xs:documentation>XML format initial version</xs:documentation>
                </xs:annotation>
            </xs:enumeration>
            <xs:enumeration value="UI"/>
            <xs:enumeration value="LegacyREGT">
                <xs:annotation>
                    <xs:documentation>Filings that came over from the legacy REGT system during the initial data migration on go-live.</xs:documentation>
                </xs:annotation>
            </xs:enumeration>
        </xs:restriction>
    </xs:simpleType>
    <xs:simpleType name="ReasonCodeType">
        <xs:annotation>
            <xs:documentation>Note that there are restrictions on which ReasonCode values can be used with which RequestType. As a general rule, 001 through 021 are appropriate for Regulation T filings ("REGT"), and 040 and higher are used with SEC Rule 15c3-3 ("15C3").</xs:documentation>
        </xs:annotation>
        <xs:restriction base="xs:string">
            <xs:enumeration value="001"/>
            <xs:enumeration value="002"/>
            <xs:enumeration value="003"/>
            <xs:enumeration value="004"/>
            <xs:enumeration value="005"/>
            <xs:enumeration value="006"/>
            <xs:enumeration value="007"/>
            <xs:enumeration value="008"/>
            <xs:enumeration value="009"/>
            <xs:enumeration value="012"/>
            <xs:enumeration value="014"/>
            <xs:enumeration value="015"/>
            <xs:enumeration value="016"/>
            <xs:enumeration value="017"/>
            <xs:enumeration value="018"/>
            <xs:enumeration value="019"/>
            <xs:enumeration value="020"/>
            <xs:enumeration value="021"/>
            <xs:enumeration value="040"/>
            <xs:enumeration value="041"/>
            <xs:enumeration value="042"/>
            <xs:enumeration value="043"/>
            <xs:enumeration value="044"/>
            <xs:enumeration value="045"/>
            <xs:enumeration value="046"/>
            <xs:enumeration value="047"/>
            <xs:enumeration value="048"/>
            <xs:enumeration value="049"/>
            <xs:enumeration value="050"/>
            <xs:enumeration value="051"/>
            <xs:enumeration value="052"/>
            <xs:enumeration value="060"/>
            <xs:enumeration value="061"/>
            <xs:enumeration value="062"/>
            <xs:enumeration value="063"/>
            <xs:enumeration value="066"/>
            <xs:enumeration value="067"/>
            <xs:enumeration value="068"/>
            <xs:enumeration value="069"/>
            <xs:enumeration value="070"/>
            <xs:enumeration value="071"/>
            <xs:enumeration value="072"/>
            <xs:enumeration value="073"/>
            <xs:enumeration value="074"/>
            <xs:enumeration value="075"/>
            <xs:enumeration value="076"/>
            <xs:enumeration value="077"/>
            <xs:enumeration value="078"/>
            <xs:enumeration value="080"/>
            <!-- Inactive...
            <xs:enumeration value="022"/>
            <xs:enumeration value="023"/>
            <xs:enumeration value="024"/>
            <xs:enumeration value="025"/>
            <xs:enumeration value="026"/>
            <xs:enumeration value="027"/>
            <xs:enumeration value="028"/>
-->
        </xs:restriction>
    </xs:simpleType>
    <xs:simpleType name="CustomerTypeType">
        <xs:restriction base="xs:string">
            <xs:enumeration value="DomesticIndividual"/>
            <xs:enumeration value="DomesticCompany"/>
            <xs:enumeration value="ForeignIndividual"/>
            <xs:enumeration value="ForeignCompany"/>
            <xs:enumeration value=""/>
        </xs:restriction>
    </xs:simpleType>
    <xs:simpleType name="CustomerContactCodeType">
        <xs:restriction base="xs:string">
            <xs:enumeration value="RegisteredRep"/>
            <xs:enumeration value="SelfDirected">
                <xs:annotation>
                    <xs:documentation>There is No Registered Rep</xs:documentation>
                </xs:annotation>
            </xs:enumeration>
            <xs:enumeration value=""/>
        </xs:restriction>
    </xs:simpleType>
    <xs:simpleType name="AccountTypeType">
        <xs:restriction base="xs:string">
            <xs:enumeration value="Cash"/>
            <xs:enumeration value="Margin"/>
            <xs:enumeration value=""/>
        </xs:restriction>
    </xs:simpleType>
    <xs:simpleType name="IssueStatusType">
        <xs:restriction base="xs:string">
            <xs:enumeration value="No">
                <xs:annotation>
                    <xs:documentation>No = Existing Issue</xs:documentation>
                </xs:annotation>
            </xs:enumeration>
            <xs:enumeration value="Yes">
                <xs:annotation>
                    <xs:documentation>Yes = New Issue</xs:documentation>
                </xs:annotation>
            </xs:enumeration>
            <xs:enumeration value=""/>
        </xs:restriction>
    </xs:simpleType>
    <xs:simpleType name="ProductCodeType">
        <xs:restriction base="xs:string">
            <xs:enumeration value="Equity"/>
            <xs:enumeration value="Option">
                <xs:annotation>
                    <xs:documentation>Intended use: Listed Options</xs:documentation>
                </xs:annotation>
            </xs:enumeration>
            <xs:enumeration value="Derivative">
                <xs:annotation>
                    <xs:documentation>Intended use: OTC Derivatives</xs:documentation>
                </xs:annotation>
            </xs:enumeration>
            <xs:enumeration value="Mutual Fund"/>
            <xs:enumeration value="Bond"/>
            <xs:enumeration value=""/>
        </xs:restriction>
    </xs:simpleType>
    <xs:simpleType name="RequestActionType">
        <xs:restriction base="xs:string">
            <xs:enumeration value="Amend">
                <xs:annotation>
                    <xs:documentation>Use Amend for ANY amendment, including: withdrawals and amendments to follow-ons.</xs:documentation>
                </xs:annotation>
            </xs:enumeration>
            <xs:enumeration value="New">
                <xs:annotation>
                    <xs:documentation>Use New for brand new requests and for follow-ons.</xs:documentation>
                </xs:annotation>
            </xs:enumeration>
        </xs:restriction>
    </xs:simpleType>
    <xs:simpleType name="CorrespondentFirmTypeType">
        <xs:restriction base="xs:string">
            <xs:enumeration value="Domestic">
                <xs:annotation>
                    <xs:documentation>There is a DOMESTIC correspondent firm</xs:documentation>
                </xs:annotation>
            </xs:enumeration>
            <xs:enumeration value="Foreign">
                <xs:annotation>
                    <xs:documentation>There is a FOREIGN correspondent firm</xs:documentation>
                </xs:annotation>
            </xs:enumeration>
            <xs:enumeration value="None">
                <xs:annotation>
                    <xs:documentation>There is NO correspondent firm</xs:documentation>
                </xs:annotation>
            </xs:enumeration>
            <xs:enumeration value=""/>
        </xs:restriction>
    </xs:simpleType>
    <xs:simpleType name="EmptyDateType">
        <xs:annotation>
            <xs:documentation>Union of xs:date and empty xs:string to allow empty elements</xs:documentation>
        </xs:annotation>
        <xs:union memberTypes="xs:date">
            <xs:simpleType>
                <xs:restriction base="xs:string">
                    <xs:enumeration value=""/>
                </xs:restriction>
            </xs:simpleType>
        </xs:union>
    </xs:simpleType>
    <xs:simpleType name="EmptyPositiveIntegerType">
        <xs:annotation>
            <xs:documentation>Union of xs:positiveInteger and empty xs:string to allow empty elements</xs:documentation>
        </xs:annotation>
        <xs:union memberTypes="xs:positiveInteger">
            <xs:simpleType>
                <xs:restriction base="xs:string">
                    <xs:enumeration value=""/>
                </xs:restriction>
            </xs:simpleType>
        </xs:union>
    </xs:simpleType>
    <xs:complexType name="BatchFileMetaInfoType">
        <xs:sequence>
            <xs:element name="FINRABatchID" type="xs:integer">
                <xs:annotation>
                    <xs:documentation>Assigned by the batch processing routine.</xs:documentation>
                </xs:annotation>
            </xs:element>
            <xs:element name="SubmitterJobReferenceID" minOccurs="0">
                <xs:annotation>
                    <xs:documentation>Optional value that can be provided by the submitter in batch file at BatchJob/@SubmitterJobReferenceID - it's the submitter's internal reference ID for this batch run.</xs:documentation>
                </xs:annotation>
                <xs:simpleType>
                    <xs:restriction base="xs:string">
                        <xs:maxLength value="24"/>
                    </xs:restriction>
                </xs:simpleType>
            </xs:element>
            <xs:element name="SubmitterID" type="xs:string">
                <xs:annotation>
                    <xs:documentation>For batch submitted requests, this is the SFTP user.</xs:documentation>
                </xs:annotation>
            </xs:element>
            <xs:element name="FileName">
                <xs:annotation>
                    <xs:documentation>Name of the file that contained this filing data. Not present for UI-submitted requests.</xs:documentation>
                </xs:annotation>
            </xs:element>
            <xs:element name="SubmittedDateTime" type="xs:dateTime">
                <xs:annotation>
                    <xs:documentation>For batch submitted files, this is the time (mtime) of the submitted file (indicates when file was completely transferred to FINRA server.</xs:documentation>
                </xs:annotation>
            </xs:element>
        </xs:sequence>
    </xs:complexType>
    <xs:complexType name="BatchFileMetaInfoTypeRejectedFileExtension">
        <xs:complexContent>
            <xs:extension base="f:BatchFileMetaInfoType">
                <xs:sequence>
                    <xs:element name="Notes" type="xs:string" minOccurs="0"/>
                </xs:sequence>
            </xs:extension>
        </xs:complexContent>
    </xs:complexType>
    <xs:complexType name="BatchFileMetaInfoTypeRejectedOrDraftFilingExtension">
        <xs:complexContent>
            <xs:extension base="f:BatchFileMetaInfoType">
                <xs:sequence>
                    <xs:element name="ID" type="xs:positiveInteger">
                        <xs:annotation>
                            <xs:documentation>FINRA systems track the rejected and draft filings and can provide greater details on a rejected/draft filing based on this ID.</xs:documentation>
                        </xs:annotation>
                    </xs:element>
                    <xs:element name="Note" type="xs:string" minOccurs="0">
                        <xs:annotation>
                            <xs:documentation>Provides some basic information regarding the reason the filing was rejected or left in draft mode.</xs:documentation>
                        </xs:annotation>
                    </xs:element>
                </xs:sequence>
            </xs:extension>
        </xs:complexContent>
    </xs:complexType>
    <xs:complexType name="ProcessMessageType">
        <xs:sequence>
            <xs:element name="MessageTextCode" type="f:MessageTextCodeType"/>
            <xs:element name="MessageText" type="xs:string"/>
        </xs:sequence>
    </xs:complexType>
    <xs:simpleType name="MessageTextCodeType">
        <xs:restriction base="xs:string">
            <xs:enumeration value="Error"/>
            <xs:enumeration value="Warning"/>
            <xs:enumeration value="Info"/>
            <xs:enumeration value="Success"/>
        </xs:restriction>
    </xs:simpleType>
    <xs:complexType name="FilingReviewType">
        <xs:sequence>
            <xs:element name="LogicalHash" type="xs:string">
                <xs:annotation>
                    <xs:documentation>FINRA-generated internal value that is used as a surrogate key for the logical key fields to this filing.</xs:documentation>
                </xs:annotation>
            </xs:element>
            <xs:element name="ExpirationDate" type="f:EmptyDateType"/>
            <xs:element name="DispositionHistory" minOccurs="0">
                <xs:complexType>
                    <xs:sequence>
                        <xs:element name="Disposition" type="f:DispositionType" minOccurs="0" maxOccurs="unbounded"/>
                    </xs:sequence>
                </xs:complexType>
            </xs:element>
            <xs:element name="ParentFilingID" type="f:EmptyPositiveIntegerType" minOccurs="0"/>
            <xs:element name="ParentFilingVersion" type="f:EmptyPositiveIntegerType" minOccurs="0"/>
            <xs:element name="CurrentDispositionCode" type="f:DispositionCodeType"/>
            <xs:element name="CurrentDispositionComment" type="xs:string"/>
        </xs:sequence>
    </xs:complexType>
    <xs:complexType name="DispositionType">
        <xs:sequence>
            <xs:element name="DispositionCode" type="f:DispositionCodeType"/>
            <xs:element name="DispositionDateTime" type="xs:dateTime"/>
            <xs:element name="DispositionUser" type="xs:string"/>
            <xs:element name="DispositionComment" type="xs:string"/>
        </xs:sequence>
    </xs:complexType>
    <xs:simpleType name="DispositionCodeType">
        <xs:restriction base="xs:string">
            <xs:enumeration value="Granted"/>
            <xs:enumeration value="Denied"/>
            <xs:enumeration value="Pending"/>
            <xs:enumeration value="In Progress"/>
            <xs:enumeration value=""/>
        </xs:restriction>
    </xs:simpleType>
    <xs:simpleType name="RegardingType">
        <xs:restriction base="xs:string">
            <xs:enumeration value="BatchSubmissionFilingResult"/>
            <xs:enumeration value="BatchFileRejectedResult"/>
            <xs:enumeration value="UIFilingResult"/>
            <xs:enumeration value="DispositionUpdateByFINRAResult"/>
        </xs:restriction>
    </xs:simpleType>
    <xs:complexType name="UIFilingMetaInfoType">
        <xs:sequence>
            <xs:element name="SubmitterID" type="xs:string">
                <xs:annotation>
                    <xs:documentation>For UI submitted filings, this is an EWS ID</xs:documentation>
                </xs:annotation>
            </xs:element>
            <xs:element name="SubmittedDateTime" type="xs:dateTime">
                <xs:annotation>
                    <xs:documentation>For UI-submitted files, this is the time stamp of when the filing was submitted.</xs:documentation>
                </xs:annotation>
            </xs:element>
        </xs:sequence>
    </xs:complexType>
    <xs:simpleType name="positiveIntegerTo99">
        <xs:restriction base="xs:positiveInteger">
            <xs:maxInclusive value="99"/>
        </xs:restriction>
    </xs:simpleType>
    <xs:simpleType name="nonNegativeIntegerTo99">
        <xs:restriction base="xs:nonNegativeInteger">
            <xs:maxInclusive value="99"/>
        </xs:restriction>
    </xs:simpleType>
    <xs:simpleType name="ShareQuantityType">
        <xs:restriction base="xs:nonNegativeInteger">
            <xs:maxInclusive value="999999999999"/>
        </xs:restriction>
    </xs:simpleType>
</xs:schema>