<?xml version="1.0" encoding="utf-8"?>
<xs:schema id="ROOT_CORR_LIMITS" xmlns="" xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata">
  <xs:element name="ROOT_CORR_LIMITS" msdata:IsDataSet="true" msdata:Locale="en-US">
    <xs:complexType>
      <xs:choice minOccurs="0" maxOccurs="unbounded">
        <xs:element name="Params">
          <xs:complexType>
            <xs:attribute name="UserID" type="xs:integer" use="optional"/>
            <xs:attribute name="Firm" type="xs:string" use="optional"/>
            <xs:attribute name="ClientCode" type="xs:string" use="optional"/>
            <xs:attribute name="ReportType" type="xs:string" />
            <xs:attribute name="DayFrom" type="xs:date" />
            <xs:attribute name="DayTo" type="xs:date" />
          </xs:complexType>
        </xs:element>
        <xs:element name="Data">
          <xs:complexType>
            <xs:sequence>
              <xs:element name="Firm" minOccurs="0" maxOccurs="unbounded">
                <xs:complexType>
                  <xs:sequence>
                    <xs:element name="Client" minOccurs="0" maxOccurs="unbounded">
                      <xs:complexType>
                        <xs:sequence>
                          <xs:element name="LimitOperation" minOccurs="0" maxOccurs="unbounded">
                            <xs:complexType>
                              <xs:sequence>
                                <xs:element name="UserInfo" minOccurs="0" maxOccurs="unbounded">
                                  <xs:complexType>
                                    <xs:attribute name="UserID" type="xs:integer" />
                                    <xs:attribute name="UserName1" type="xs:string" />
                                    <xs:attribute name="UserName2" type="xs:string" />
                                    <xs:attribute name="UserName3" type="xs:string" />
                                    <xs:attribute name="OrgCode" type="xs:integer" />
                                    <xs:attribute name="OrgName" type="xs:string" />
                                  </xs:complexType>
                                </xs:element>
                              </xs:sequence>
                              <xs:attribute name="OperationTime" type="xs:dateTime" />
                              <xs:attribute name="OpenBalance" type="xs:float" />
                              <xs:attribute name="OpenLimit" type="xs:float" />
                              <xs:attribute name="CurrentBalance" type="xs:float" />
                              <xs:attribute name="CurrentLimit" type="xs:float" />
			      <xs:attribute name="LimitKind" type="xs:integer" />                              
                              <xs:attribute name="UserSeq" type="xs:integer" />
                              <xs:attribute name="Status" type="xs:string" />
                              <xs:attribute name="OperationTypeFlag" type="xs:integer" />
                              <xs:attribute name="UserID" type="xs:integer" />
                              <xs:attribute name="UseOpenBalance" type="xs:integer" />
                              <xs:attribute name="UseOpenLimit" type="xs:integer" />
                              <xs:attribute name="UseCurrentBalance" type="xs:integer" />
			      <xs:attribute name="UseCurentLimit" type="xs:integer" />
                              <xs:attribute name="OperationType" type="xs:integer" />                              
                              <xs:attribute name="UseAwgPrice" type="xs:integer" />
			      <xs:attribute name="TrdAcc" type="xs:string" />
                              <xs:attribute name="SecCode" type="xs:string" />
                              <xs:attribute name="AwgPrice" type="xs:float" />
                              <xs:attribute name="CurrCode" type="xs:string" />
                            </xs:complexType>
                          </xs:element>
                        </xs:sequence>
                        <xs:attribute name="ClientCode" type="xs:string" />
                      </xs:complexType>
                    </xs:element>
                  </xs:sequence>
                  <xs:attribute name="FirmID" type="xs:string" />
                </xs:complexType>
              </xs:element>
            </xs:sequence>
          </xs:complexType>
        </xs:element>
      </xs:choice>
    </xs:complexType>
  </xs:element>
</xs:schema>