<?xml version="1.0" encoding="UTF-8"?>
<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" elementFormDefault="qualified" attributeFormDefault="unqualified">
  <xs:element name="result">
    <xs:complexType>
      <xs:sequence>
        <xs:element name="bank_data">
          <xs:complexType>
            <xs:sequence>
              <xs:element name="bic" type="xs:string" minOccurs="0"/>
              <xs:element name="branch" type="xs:string" minOccurs="0"/>
              <xs:element name="bank" type="xs:string" minOccurs="0"/>
              <xs:element name="address" type="xs:string" minOccurs="0"/>
              <xs:element name="city" type="xs:string" minOccurs="0"/>
              <xs:element name="state" type="xs:string" minOccurs="0"/>
              <xs:element name="zip" type="xs:string" minOccurs="0"/>
              <xs:element name="phone" type="xs:string" minOccurs="0"/>
              <xs:element name="fax" type="xs:string" minOccurs="0"/>
              <xs:element name="www" type="xs:string" minOccurs="0"/>
              <xs:element name="email" type="xs:string" minOccurs="0"/>
              <xs:element name="country" type="xs:string" minOccurs="0"/>
              <xs:element name="country_iso" type="xs:string" minOccurs="0"/>
              <xs:element name="account" type="xs:string" minOccurs="0"/>
              <xs:element name="bank_code" type="xs:string" minOccurs="0"/>
              <xs:element name="branch_code" type="xs:string" minOccurs="0"/>
            </xs:sequence>
          </xs:complexType>
        </xs:element>
        <xs:element name="sepa_data">
          <xs:complexType>
            <xs:sequence>
              <xs:element name="SCT" type="xs:string" minOccurs="0"/>
              <xs:element name="SCI" type="xs:string" minOccurs="0"/>
              <xs:element name="SCI_TIPS" type="xs:string" minOccurs="0"/>
              <xs:element name="SDD" type="xs:string" minOccurs="0"/>
              <xs:element name="COR1" type="xs:string" minOccurs="0"/>
              <xs:element name="B2B" type="xs:string" minOccurs="0"/>
              <xs:element name="SCC" type="xs:string" minOccurs="0"/>
            </xs:sequence>
          </xs:complexType>
        </xs:element>
        <xs:element name="validations">
          <xs:complexType>
            <xs:sequence>
              <xs:element name="chars" type="check" minOccurs="0"/>
              <xs:element name="iban" type="check" minOccurs="0"/>
              <xs:element name="account" type="check" minOccurs="0"/>
              <xs:element name="structure" type="check" minOccurs="0"/>
              <xs:element name="length" type="check" minOccurs="0"/>
              <xs:element name="country_support" type="check" minOccurs="0"/>
            </xs:sequence>
          </xs:complexType>
        </xs:element>
        <xs:element name="errors">
          <xs:complexType>
            <xs:sequence>
              <xs:element name="error" type="check" minOccurs="0" maxOccurs="unbounded"/>
            </xs:sequence>
          </xs:complexType>
        </xs:element>
      </xs:sequence>
    </xs:complexType>
  </xs:element>
  <xs:complexType name="check">
    <xs:sequence>
      <xs:element name="code" type="xs:string"/>
      <xs:element name="message" type="xs:string"/>
    </xs:sequence>
  </xs:complexType>
</xs:schema>
