<?xml version="1.0" encoding="utf-8"?>
<xs:schema id="ROOT_ORDERS" xmlns="" xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata">
  <xs:element name="ROOT_ORDERS" msdata:IsDataSet="true" msdata:Locale="en-US">
    <xs:complexType>
      <xs:choice minOccurs="0" maxOccurs="unbounded">
        <xs:element name="Params">
          <xs:complexType>
            <xs:attribute name="DayFrom" type="xs:date" />
            <xs:attribute name="DayTo" type="xs:date" />
            <xs:attribute name="TimeFrom" type="xs:time" use="optional"/>
            <xs:attribute name="TimeTo" type="xs:time" use="optional"/>
            <xs:attribute name="UserID" type="xs:integer" use="optional"/>
            <xs:attribute name="ClientCode" type="xs:string" use="optional"/>
            <xs:attribute name="Orders" type="xs:integer" use="optional"/>
            <xs:attribute name="Success" type="xs:integer" use="optional"/>
            <xs:attribute name="ClassCodes" type="xs:string" use="optional"/>
            <xs:attribute name="SecCode" type="xs:string" use="optional"/>
            <xs:attribute name="MinPrice" type="xs:float" use="optional"/>
            <xs:attribute name="MaxPrice" type="xs:float" use="optional"/>
            <xs:attribute name="TransID" type="xs:integer" use="optional"/>  
        </xs:complexType>
        </xs:element>
        <xs:element name="Data">
          <xs:complexType>
            <xs:sequence>
              <xs:element name="UserInfo" minOccurs="0" maxOccurs="unbounded">
                <xs:complexType>
                  <xs:sequence>
                    <xs:element name="Trans" minOccurs="0" maxOccurs="unbounded">
                      <xs:complexType>
                        <xs:sequence>
                          <xs:element name="OrderInfo" minOccurs="0" maxOccurs="unbounded">
                            <xs:complexType>
                              <xs:attribute name="SecCode" type="xs:string" />
                              <xs:attribute name="Price" type="xs:float" />
                              <xs:attribute name="Qty" type="xs:float" />
                              <xs:attribute name="Buy" type="xs:string" />
                              <xs:attribute name="RepoValue" type="xs:float" />
                              <xs:attribute name="Comment" type="xs:string" />
                              <xs:attribute name="StatusDesc" type="xs:string" />
                      </xs:complexType>
                    </xs:element>
                  </xs:sequence>
                  <xs:attribute name="TransNum" type="xs:integer" />
                  <xs:attribute name="UID" type="xs:integer" />
                  <xs:attribute name="TransID" type="xs:integer" />
                  <xs:attribute name="SessionID" type="xs:integer" />
                  <xs:attribute name="TradeDate" type="xs:dateTime" />
                  <xs:attribute name="Status" type="xs:string" />
                  <xs:attribute name="QuikTime" type="xs:dateTime" />
                  <xs:attribute name="ReplyTime" type="xs:dateTime" />
                  <xs:attribute name="OrderNum" type="xs:integer" />
                  <xs:attribute name="ClientCode" type="xs:string" />
		  <xs:attribute name="ExtOrderNum" type="xs:string" />
                </xs:complexType>
              </xs:element>
            </xs:sequence>
                  <xs:attribute name="UID" type="xs:integer" />
                  <xs:attribute name="Name1" type="xs:string" />
                  <xs:attribute name="Name2" type="xs:string" />
                  <xs:attribute name="Name3" type="xs:string" />
                  <xs:attribute name="OrgCode" type="xs:integer" />
                  <xs:attribute name="OrgName" type="xs:string" />
                </xs:complexType>
              </xs:element>
            </xs:sequence>
          </xs:complexType>
        </xs:element>
      </xs:choice>
    </xs:complexType>
  </xs:element>
</xs:schema>