<xs:schema version="2.7" targetNamespace="https://services.vision-net.ie" xmlns:tns="https://services.vision-net.ie" xmlns:xs="http://www.w3.org/2001/XMLSchema">

  <xs:element name="company" type="tns:company"/>

  <xs:complexType name="company">
    <xs:all>
      <xs:element name="company_num" type="xs:string" form="qualified"/>
      <xs:element name="company_name" type="xs:string" form="qualified"/>
      <xs:element name="company_bus_ind" type="xs:string" form="qualified"/>
      <xs:element name="company_addr_1" type="xs:string" form="qualified" minOccurs="0"/>
      <xs:element name="company_addr_2" type="xs:string" form="qualified" minOccurs="0"/>
      <xs:element name="company_addr_3" type="xs:string" form="qualified" minOccurs="0"/>
      <xs:element name="company_addr_4" type="xs:string" form="qualified" minOccurs="0"/>
      <xs:element name="eircode" type="xs:string" form="qualified" minOccurs="0"/>
      <xs:element name="postcode" type="xs:string" form="qualified" minOccurs="0"/>
      <xs:element name="company_county_id" type="xs:int" form="qualified" minOccurs="0"/>
      <xs:element name="url" type="xs:string" form="qualified" minOccurs="0"/>
      <xs:element name="telephone" type="xs:string" form="qualified" minOccurs="0"/>
      <xs:element name="vat_numbers" type="tns:vat_numbers" form="qualified" minOccurs="0"/>
      <xs:element name="company_reg_date" type="xs:string" form="qualified"/>
      <xs:element name="company_status_desc" type="xs:string" form="qualified"/>
      <xs:element name="comp_type_desc" type="xs:string" form="qualified"/>
      <xs:element name="company_type_code" type="xs:integer" form="qualified"/>
      <xs:element name="company_status_code" type="xs:integer" form="qualified"/>
      <xs:element name="company_status_date" type="xs:string" form="qualified" minOccurs="0"/>
      <xs:element name="last_ar_date" type="xs:string" form="qualified" minOccurs="0"/>
      <xs:element name="next_ar_date" type="xs:string" form="qualified" minOccurs="0"/>
      <xs:element name="last_acc_date" type="xs:string" form="qualified" minOccurs="0"/>
      <xs:element name="nace_codes" type="tns:nace_codes" form="qualified" minOccurs="0"/>
      <xs:element name="sic_codes" type="tns:sic_codes" form="qualified" minOccurs="0"/>
      <xs:element name="last_updated" type="xs:string" form="qualified" minOccurs="0"/>
      <xs:element name="latest_doc_ids" type="tns:latest_doc_ids" form="qualified" minOccurs="0"/>
      <xs:element name="company_size" type="xs:string" form="qualified" minOccurs="0"/>
      <xs:element name="group_company" type="xs:string" form="qualified" minOccurs="0"/>
      <xs:element name="people" type="tns:people" form="qualified" minOccurs="0"/>
      <xs:element name="shared_directorships" type="tns:shared_directorships" form="qualified" minOccurs="0"/>
      <xs:element name="mortgages_and_charges" type="tns:mortgages_and_charges" form="qualified" minOccurs="0"/>
      <xs:element name="liquidators" type="tns:liquidators" form="qualified" minOccurs="0"/>
      <xs:element name="receivers" type="tns:receivers" form="qualified" minOccurs="0"/>
      <xs:element name="examiners" type="tns:examiners" form="qualified" minOccurs="0"/>
      <xs:element name="riskwatch_details" type="tns:riskwatch_details" form="qualified" minOccurs="0"/>
      <xs:element name="credit_report" type="tns:credit_report" form="qualified" minOccurs="0"/>
      <xs:element name="credit_report_available" type="xs:string" form="qualified" minOccurs="0"/>
      <xs:element name="shareholder_report_available" type="xs:string" form="qualified" minOccurs="0"/>
      <xs:element name="ultimate_beneficial_owners_report_available" type="xs:string" form="qualified" minOccurs="0"/>
      <xs:element name="anacredit" type="tns:anacredit" form="qualified" minOccurs="0"/>
      <xs:element name="dissolved_date" type="xs:string" form="qualified" minOccurs="0"/>
      <xs:element name="euid" type="xs:string" form="qualified" minOccurs="0"/>
      <xs:element name="industry_section" type="xs:string" form="qualified" minOccurs="0"/>
    </xs:all>
    <xs:attribute name="report_generated_date" type="xs:string"/>
    <xs:attribute name="vn_api_version" type="xs:float"/>
  </xs:complexType>

  <xs:complexType name="vat_numbers">
    <xs:sequence>
      <xs:element name="vat_number" type="xs:string" form="qualified" maxOccurs="unbounded"/>
    </xs:sequence>
  </xs:complexType>

  <xs:complexType name="nace_codes">
    <xs:sequence>
      <xs:element name="nace_code" type="tns:business_descriptor" form="qualified" maxOccurs="unbounded"/>
    </xs:sequence>
  </xs:complexType>
  <xs:complexType name="sic_codes">
    <xs:sequence>
      <xs:element name="sic_code" type="tns:business_descriptor" form="qualified" maxOccurs="unbounded"/>
    </xs:sequence>
  </xs:complexType>

  <xs:complexType name="business_descriptor">
    <xs:all>
      <xs:element name="code" type="xs:string" form="qualified"/>
      <xs:element name="nace_code_revision" type="xs:float" form="qualified"/>
      <xs:element name="description" type="xs:string" form="qualified"/>
    </xs:all>
  </xs:complexType>

  <xs:complexType name="latest_doc_ids">
    <xs:all>
      <xs:element name="annual_returns_doc_id" type="xs:integer" form="qualified" minOccurs="0"/>
      <xs:element name="incorporation_doc_id" type="xs:integer" form="qualified" minOccurs="0"/>
      <xs:element name="constitution_doc_id" type="xs:integer" form="qualified" minOccurs="0"/>
      <xs:element name="accounts_doc_id" type="xs:integer" form="qualified" minOccurs="0"/>
      <xs:element name="liquidation_docs" type="tns:liquidation_docs" form="qualified" minOccurs="0"/>
    </xs:all>
  </xs:complexType>

  <xs:complexType name="liquidation_docs">
    <xs:sequence>
      <xs:element name="liquidation_doc_id" type="xs:integer" form="qualified" maxOccurs="unbounded"/>
    </xs:sequence>
  </xs:complexType>

  <xs:complexType name="people">
    <xs:all>
      <xs:element name="directors" type="tns:directors" form="qualified" minOccurs="0"/>
      <xs:element name="secretaries" type="tns:secretaries" form="qualified" minOccurs="0"/>
      <xs:element name="directors_active_count" type="xs:integer" form="qualified" minOccurs="0"/>
      <xs:element name="changes_history" type="tns:changes_history" form="qualified" minOccurs="0"/>
    </xs:all>
  </xs:complexType>

  <xs:complexType name="directors">
    <xs:sequence>
      <xs:element name="director" type="tns:person" form="qualified" maxOccurs="unbounded"/>
    </xs:sequence>
  </xs:complexType>

  <xs:complexType name="secretaries">
    <xs:sequence>
      <xs:element name="secretary" type="tns:person" form="qualified" maxOccurs="unbounded" minOccurs="0"/>
    </xs:sequence>
  </xs:complexType>

  <xs:complexType name="person">
    <xs:all>
      <xs:element name="name" type="xs:string" form="qualified"/>
      <xs:element name="date_of_birth" type="xs:string" form="qualified" minOccurs="0"/>
      <xs:element name="title" type="xs:string" form="qualified" minOccurs="0"/>
      <xs:element name="from_date" type="xs:string" form="qualified" minOccurs="0"/>
      <xs:element name="to_date" type="xs:string" form="qualified" minOccurs="0"/>
      <xs:element name="address_1" type="xs:string" form="qualified" minOccurs="0"/>
      <xs:element name="address_2" type="xs:string" form="qualified" minOccurs="0"/>
      <xs:element name="address_3" type="xs:string" form="qualified" minOccurs="0"/>
      <xs:element name="address_4" type="xs:string" form="qualified" minOccurs="0"/>
      <xs:element name="eircode" type="xs:string" form="qualified" minOccurs="0"/>
      <xs:element name="postcode" type="xs:string" form="qualified" minOccurs="0"/>
      <xs:element name="county_id" type="xs:int" form="qualified" minOccurs="0"/>
      <xs:element name="country" type="xs:string" form="qualified" minOccurs="0"/>
      <xs:element name="nationality" type="xs:string" form="qualified" minOccurs="0"/>
      <xs:element name="eea_resident" type="xs:string" form="qualified" minOccurs="0"/>
      <xs:element name="occupation" type="xs:string" form="qualified" minOccurs="0"/>
      <xs:element name="current_directorships" type="xs:integer" form="qualified" minOccurs="0"/>
      <xs:element name="previous_directorships" type="xs:integer" form="qualified" minOccurs="0"/>
      <xs:element name="entity_type" type="xs:string" form="qualified" minOccurs="0"/>
    </xs:all>
  </xs:complexType>

  <xs:complexType name="changes_history">
    <xs:all>
      <xs:element name="appointment" type="tns:appointment" form="qualified" minOccurs="0"/>
      <xs:element name="resignation" type="tns:resignation" form="qualified" minOccurs="0"/>
    </xs:all>
  </xs:complexType>

  <xs:complexType name="appointment">
    <xs:sequence>
      <xs:element name="person" type="tns:person" form="qualified" maxOccurs="unbounded" minOccurs="0"/>
    </xs:sequence>
  </xs:complexType>

  <xs:complexType name="resignation">
    <xs:sequence>
      <xs:element name="person" type="tns:person" form="qualified" maxOccurs="unbounded" minOccurs="0"/>
    </xs:sequence>
  </xs:complexType>

  <xs:complexType name="liquidators">
    <xs:sequence>
      <xs:element name="liquidator" type="tns:insolvencyPracticioner" form="qualified" maxOccurs="unbounded"/>
    </xs:sequence>
  </xs:complexType>

  <xs:complexType name="receivers">
    <xs:sequence>
      <xs:element name="receiver" type="tns:insolvencyPracticioner" form="qualified" maxOccurs="unbounded"/>
    </xs:sequence>
  </xs:complexType>

  <xs:complexType name="examiners">
    <xs:sequence>
      <xs:element name="examiner" type="tns:insolvencyPracticioner" form="qualified" maxOccurs="unbounded"/>
    </xs:sequence>
  </xs:complexType>

  <xs:complexType name="insolvencyPracticioner">
    <xs:all>
      <xs:element name="name" type="xs:string" form="qualified"/>
      <xs:element name="address_1" type="xs:string" form="qualified" minOccurs="0"/>
      <xs:element name="address_2" type="xs:string" form="qualified" minOccurs="0"/>
      <xs:element name="address_3" type="xs:string" form="qualified" minOccurs="0"/>
      <xs:element name="address_4" type="xs:string" form="qualified" minOccurs="0"/>
      <xs:element name="eircode" type="xs:string" form="qualified" minOccurs="0"/>
      <xs:element name="postcode" type="xs:string" form="qualified" minOccurs="0"/>
      <xs:element name="appointed_date" type="xs:string" form="qualified"/>
      <xs:element name="ceased_date" type="xs:string" form="qualified" minOccurs="0"/>
      <xs:element name="relationship" type="xs:string" form="qualified" minOccurs="0"/>
    </xs:all>
  </xs:complexType>

  <xs:complexType name="mortgages_and_charges">
    <xs:sequence>
      <xs:element name="total_charges" type="xs:integer" form="qualified"/>
      <xs:element name="unsatisfied_charges" type="xs:integer" form="qualified"/>
      <xs:element name="charges" type="tns:charges" form="qualified" maxOccurs="unbounded" minOccurs="0"/>
    </xs:sequence>
  </xs:complexType>

  <xs:complexType name="charges">
    <xs:sequence>
      <xs:element name="charge" type="tns:charge" form="qualified" maxOccurs="unbounded"/>
    </xs:sequence>
  </xs:complexType>

  <xs:complexType name="charge">
    <xs:all>
      <xs:element name="charge_number" type="xs:integer" form="qualified"/>
      <xs:element name="charge_type" type="xs:string" form="qualified"/>
      <xs:element name="created_date" type="xs:string" form="qualified"/>
      <xs:element name="received_date" type="xs:string" form="qualified"/>
      <xs:element name="registered_date" type="xs:string" form="qualified"/>
      <xs:element name="due_currency" type="xs:string" form="qualified" minOccurs="0"/>
      <xs:element name="amount_secured" type="xs:float" form="qualified" minOccurs="0"/>
      <xs:element name="further_particulars" type="xs:string" form="qualified" minOccurs="0"/>
      <xs:element name="interest_particulars" type="xs:string" form="qualified" minOccurs="0"/>
      <xs:element name="charge_documents" type="tns:charge_documents" form="qualified" minOccurs="0"/>
      <xs:element name="amount_secured_details" type="xs:string" form="qualified" minOccurs="0"/>
      <xs:element name="property_notes" type="tns:property_notes" form="qualified" minOccurs="0"/>
      <xs:element name="party_details" type="tns:party_details" form="qualified"/>
      <xs:element name="charge_status" type="xs:string" form="qualified"/>
      <xs:element name="satisfactions" type="tns:satisfactions" form="qualified" minOccurs="0"/>
    </xs:all>
  </xs:complexType>

  <xs:complexType name="charge_documents">
    <xs:sequence>
      <xs:element name="document" type="tns:document" form="qualified" maxOccurs="unbounded"/>
    </xs:sequence>
  </xs:complexType>

  <xs:complexType name="document">
    <xs:all>
      <xs:element name="doc_id" type="xs:string" form="qualified" minOccurs="0"/>
      <xs:element name="submission_num" type="xs:integer" form="qualified" minOccurs="0"/>
      <xs:element name="document_num" type="xs:string" form="qualified" minOccurs="0"/>
      <xs:element name="document_type" type="xs:string" form="qualified" minOccurs="0"/>
      <xs:element name="document_desc" type="xs:string" form="qualified" minOccurs="0"/>
      <xs:element name="document_received_date" type="xs:string" form="qualified" minOccurs="0"/>
    </xs:all>
  </xs:complexType>

  <xs:complexType name="property_notes">
    <xs:sequence>
      <xs:element name="property_note" type="xs:string" form="qualified" maxOccurs="unbounded"/>
    </xs:sequence>
  </xs:complexType>

  <xs:complexType name="party_details">
    <xs:sequence>
      <xs:element name="party" type="tns:party" form="qualified" maxOccurs="unbounded"/>
    </xs:sequence>
  </xs:complexType>

  <xs:complexType name="party">
    <xs:all>
      <xs:element name="party_relationship" type="xs:string" form="qualified" minOccurs="0"/>
      <xs:element name="party_name" type="xs:string" form="qualified"/>
      <xs:element name="party_address_1" type="xs:string" form="qualified" minOccurs="0"/>
      <xs:element name="party_address_2" type="xs:string" form="qualified" minOccurs="0"/>
      <xs:element name="party_address_3" type="xs:string" form="qualified" minOccurs="0"/>
      <xs:element name="party_address_4" type="xs:string" form="qualified" minOccurs="0"/>
    </xs:all>
  </xs:complexType>

  <xs:complexType name="satisfactions">
    <xs:sequence>
      <xs:element name="satisfaction" type="tns:satisfaction" form="qualified" maxOccurs="unbounded"/>
    </xs:sequence>
  </xs:complexType>

  <xs:complexType name="satisfaction">
    <xs:sequence>
      <xs:element name="satisfaction_type" type="xs:string" form="qualified" minOccurs="0"/>
      <xs:element name="satisfaction_date" type="xs:string" form="qualified" minOccurs="0"/>
      <xs:element name="satisfaction_status" type="xs:string" form="qualified" minOccurs="0"/>
      <xs:element name="satisfaction_documents" type="tns:satisfaction_documents" form="qualified" minOccurs="0"/>
    </xs:sequence>
  </xs:complexType>

  <xs:complexType name="satisfaction_documents">
    <xs:sequence>
      <xs:element name="document" type="tns:document" form="qualified" maxOccurs="unbounded"/>
    </xs:sequence>
  </xs:complexType>

  <xs:complexType name="credit_report">
    <xs:all>
      <xs:element name="credit_score" type="xs:integer" form="qualified"/>
      <xs:element name="recommended_max_credit_limit" type="xs:long" form="qualified" minOccurs="0"/>
      <xs:element name="recommended_max_credit_limit_currency" type="xs:string" form="qualified" minOccurs="0"/>
      <xs:element name="accounts_up_to_date" type="xs:string" form="qualified" minOccurs="0"/>
      <xs:element name="risk_watch_alerts" type="xs:string" form="qualified" minOccurs="0"/>
      <xs:element name="analyst_observations" type="tns:analyst_observations" form="qualified" minOccurs="0"/>
      <xs:element name="credit_score_history" type="tns:credit_score_history" form="qualified" minOccurs="0"/>
      <xs:element name="employee_count" type="xs:integer" form="qualified" minOccurs="0"/>
      <xs:element name="company_name_changes" type="tns:company_name_changes" form="qualified" minOccurs="0"/>
      <xs:element name="business_names" type="tns:business_names" form="qualified" minOccurs="0"/>
      <xs:element name="bank_details" type="tns:bank_details" form="qualified" minOccurs="0"/>
      <xs:element name="audit_details" type="tns:audit_details" form="qualified" minOccurs="0"/>
      <xs:element name="credit_report_balance_sheet" type="tns:credit_report_balance_sheet" form="qualified" minOccurs="0"/>
      <xs:element name="predicted_turnover" type="tns:predicted_turnover" form="qualified" minOccurs="0"/>
      <xs:element name="credit_report_key_ratios" type="tns:credit_report_key_ratios" form="qualified" minOccurs="0"/>
      <xs:element name="credit_report_profit_and_loss" type="tns:credit_report_profit_and_loss" form="qualified" minOccurs="0"/>
      <xs:element name="shareholders" type="tns:shareholders" form="qualified" minOccurs="0"/>
      <xs:element name="audit_exemption_reason" type="xs:string" form="qualified" minOccurs="0"/>
      <xs:element name="no_financial_statements_reason" type="xs:string" form="qualified" minOccurs="0"/>
      <xs:element name="judgments" type="tns:judgments" form="qualified" minOccurs="0"/>
    </xs:all>
  </xs:complexType>

  <xs:complexType name="analyst_observations">
    <xs:sequence>
      <xs:element name="observation" type="xs:string" form="qualified" maxOccurs="unbounded" minOccurs="0"/>
    </xs:sequence>
  </xs:complexType>

  <xs:complexType name="credit_score_history">
    <xs:sequence>
      <xs:element name="credit_score_history_item" type="tns:credit_score_history_item" form="qualified" maxOccurs="unbounded" minOccurs="0"/>
    </xs:sequence>
  </xs:complexType>

  <xs:complexType name="credit_score_history_item">
    <xs:all>
      <xs:element name="credit_score" type="xs:integer" form="qualified"/>
      <xs:element name="credit_score_date" type="xs:string" form="qualified" minOccurs="0"/>
      <xs:element name="credit_score_range" type="xs:string" form="qualified"/>
      <xs:element name="recommended_max_credit_limit_currency" type="xs:string" form="qualified" minOccurs="0"/>
      <xs:element name="recommended_max_credit_limit" type="xs:integer" form="qualified" minOccurs="0"/>
      <xs:element name="change_reason" type="xs:string" form="qualified" minOccurs="0"/>
    </xs:all>
  </xs:complexType>

  <xs:complexType name="company_name_changes">
    <xs:sequence>
      <xs:element name="change" type="tns:change" form="qualified" maxOccurs="unbounded"/>
    </xs:sequence>
  </xs:complexType>

  <xs:complexType name="change">
    <xs:all>
      <xs:element name="change_number" type="xs:integer" form="qualified"/>
      <xs:element name="previous_name" type="xs:string" form="qualified"/>
      <xs:element name="previous_name_date" type="xs:string" form="qualified" minOccurs="0"/>
    </xs:all>
  </xs:complexType>

  <xs:complexType name="business_names">
    <xs:sequence>
      <xs:element form="qualified" name="name" type="tns:name" maxOccurs="unbounded" minOccurs="0"/>
    </xs:sequence>
  </xs:complexType>

  <xs:complexType name="predicted_turnover">
    <xs:all>
      <xs:element name="predicted_doc_id" type="xs:integer" form="qualified"/>
      <xs:element name="predicted_turnover" type="xs:integer" form="qualified"/>
      <xs:element name="predicted_turnover_text" type="xs:string" form="qualified"/>
      <xs:element name="predicted_turnover_currency" type="xs:string" form="qualified"/>
      <xs:element name="predicted_turnover_accounts_year_end" type="xs:integer" form="qualified"/>
      <xs:element name="predicted_acc_to_date" type="xs:string" form="qualified"/>
    </xs:all>
  </xs:complexType>

  <xs:complexType name="profit_and_loss">
    <xs:all>
      <xs:element name="balance_sheet_year" type="xs:integer" form="qualified"/>
      <xs:element name="balance_sheet_month" type="xs:integer" form="qualified"/>
      <xs:element name="balance_sheet_months" type="xs:integer" form="qualified" minOccurs="0"/>
      <xs:element name="currency" type="xs:string" form="qualified" minOccurs="0"/>
      <xs:element name="doc_id" type="xs:integer" form="qualified" minOccurs="0"/>
      <xs:element name="acc_to_date" type="xs:string" form="qualified"/>
      <xs:element name="turnover" type="xs:integer" form="qualified" minOccurs="0"/>
      <xs:element name="cost_of_sales" type="xs:integer" form="qualified" minOccurs="0"/>
      <xs:element name="extra_exceptional_item" type="xs:integer" form="qualified" minOccurs="0"/>
      <xs:element name="gross_profit_pbt" type="xs:integer" form="qualified" minOccurs="0"/>
      <xs:element name="distribution_costs" type="xs:integer" form="qualified" minOccurs="0"/>
      <xs:element name="administrative_expenses" type="xs:integer" form="qualified" minOccurs="0"/>
      <xs:element name="operating_costs" type="xs:integer" form="qualified" minOccurs="0"/>
      <xs:element name="profit_before_interests" type="xs:integer" form="qualified" minOccurs="0"/>
      <xs:element name="interest_receivable" type="xs:integer" form="qualified" minOccurs="0"/>
      <xs:element name="interest_payable" type="xs:integer" form="qualified" minOccurs="0"/>
      <xs:element name="profit_before_tax" type="xs:integer" form="qualified" minOccurs="0"/>
      <xs:element name="tax" type="xs:integer" form="qualified" minOccurs="0"/>
      <xs:element name="profit_after_tax" type="xs:integer" form="qualified" minOccurs="0"/>
      <xs:element name="dividends" type="xs:integer" form="qualified" minOccurs="0"/>
      <xs:element name="other_additions" type="xs:integer" form="qualified" minOccurs="0"/>
      <xs:element name="profit_for_the_year" type="xs:integer" form="qualified" minOccurs="0"/>
      <xs:element name="other_deductations" type="xs:integer" form="qualified" minOccurs="0"/>
      <xs:element name="service_charges" type="xs:integer" form="qualified" minOccurs="0"/>
      <xs:element name="payroll" type="xs:integer" form="qualified" minOccurs="0"/>
      <xs:element name="other_operating_income" type="xs:integer" form="qualified" minOccurs="0"/>
      <xs:element name="other_finance_expense" type="xs:integer" form="qualified" minOccurs="0"/>
      <xs:element name="depreciation_and_amortisation" type="xs:integer" form="qualified" minOccurs="0"/>
      <xs:element name="other_operating_charges" type="xs:integer" form="qualified" minOccurs="0"/>
      <xs:element name="other_finance_income" type="xs:integer" form="qualified" minOccurs="0"/>
      <xs:element name="profit_carried_forward" type="xs:integer" form="qualified" minOccurs="0"/>
      <xs:element name="minority_interests" type="xs:integer" form="qualified" minOccurs="0"/>
      <xs:element name="profit_brought_forward" type="xs:integer" form="qualified" minOccurs="0"/>
      <xs:element name="extraordinary_item" type="xs:integer" form="qualified" minOccurs="0"/>
      <xs:element name="exceptional_item" type="xs:integer" form="qualified" minOccurs="0"/>
    </xs:all>
  </xs:complexType>

  <xs:complexType name="bank_details">
    <xs:all>
      <xs:element name="bank_name" type="xs:string" form="qualified" minOccurs="0"/>
      <xs:element name="bank_address" type="xs:string" form="qualified" minOccurs="0"/>
    </xs:all>
  </xs:complexType>

  <xs:complexType name="share_class">
    <xs:all>
      <xs:element name="issue_class" type="xs:string" form="qualified"/>
      <xs:element name="shares_issued" type="xs:integer" form="qualified"/>
      <xs:element name="aggregate_nominal_value" type="xs:integer" form="qualified" minOccurs="0"/>
      <xs:element name="currency" type="xs:string" form="qualified" minOccurs="0"/>
    </xs:all>
  </xs:complexType>

  <xs:complexType name="balance_sheet">
    <xs:all>
      <xs:element name="balance_sheet_year" type="xs:integer" form="qualified"/>
      <xs:element name="balance_sheet_month" type="xs:integer" form="qualified"/>
      <xs:element name="balance_sheet_months" type="xs:integer" form="qualified" minOccurs="0"/>
      <xs:element name="currency" type="xs:string" form="qualified" minOccurs="0"/>
      <xs:element name="doc_id" type="xs:integer" form="qualified" minOccurs="0"/>
      <xs:element name="acc_to_date" type="xs:string" form="qualified"/>
      <xs:element name="consolidated" type="xs:string" form="qualified" minOccurs="0"/>
      <xs:element name="other_long_term_assets" type="xs:long" form="qualified" minOccurs="0"/>
      <xs:element name="proposed_dividends" type="xs:long" form="qualified" minOccurs="0"/>
      <xs:element name="long_term_due_in_one_year" type="xs:long" form="qualified" minOccurs="0"/>
      <xs:element name="stock_and_wip" type="xs:long" form="qualified" minOccurs="0"/>
      <xs:element name="intangible_assets" type="xs:long" form="qualified" minOccurs="0"/>
      <xs:element name="cash" type="xs:long" form="qualified" minOccurs="0"/>
      <xs:element name="debtors" type="xs:long" form="qualified" minOccurs="0"/>
      <xs:element name="marketable_securities_investments" type="xs:long" form="qualified" minOccurs="0"/>
      <xs:element name="total_current_assets" type="xs:long" form="qualified" minOccurs="0"/>
      <xs:element name="creditors" type="xs:long" form="qualified" minOccurs="0"/>
      <xs:element name="trade_creditors" type="xs:long" form="qualified" minOccurs="0"/>
      <xs:element name="accrual_deferred_income" type="xs:long" form="qualified" minOccurs="0"/>
      <xs:element name="bank_overdraft_loan" type="xs:long" form="qualified" minOccurs="0"/>
      <xs:element name="notes_loan_payable_others" type="xs:long" form="qualified" minOccurs="0"/>
      <xs:element name="loans_from_principals" type="xs:long" form="qualified" minOccurs="0"/>
      <xs:element name="tax_and_social_security" type="xs:long" form="qualified" minOccurs="0"/>
      <xs:element name="hire_purchased_one_year" type="xs:long" form="qualified" minOccurs="0"/>
      <xs:element name="total_current_liabilities" type="xs:long" form="qualified" minOccurs="0"/>
      <xs:element name="net_current_assets" type="xs:long" form="qualified" minOccurs="0"/>
      <xs:element name="total_assets_less_current_liabilities" type="xs:long" form="qualified" minOccurs="0"/>
      <xs:element name="other_long_term_liabilities" type="xs:long" form="qualified" minOccurs="0"/>
      <xs:element name="reserves" type="xs:long" form="qualified" minOccurs="0"/>
      <xs:element name="called_up_shares" type="xs:long" form="qualified" minOccurs="0"/>
      <xs:element name="retained_earning_profit_and_loss" type="xs:long" form="qualified" minOccurs="0"/>
      <xs:element name="total_fixed_or_non_current_assets" type="xs:long" form="qualified" minOccurs="0"/>
      <xs:element name="total_long_term_liabilities" type="xs:long" form="qualified" minOccurs="0"/>
      <xs:element name="pension_asset" type="xs:long" form="qualified" minOccurs="0"/>
      <xs:element name="shareholders_funds" type="xs:long" form="qualified" minOccurs="0"/>
      <xs:element name="tangible_assets" type="xs:long" form="qualified" minOccurs="0"/>
      <xs:element name="financial_assets" type="xs:long" form="qualified" minOccurs="0"/>
      <xs:element name="other_receivable_debtor" type="xs:long" form="qualified" minOccurs="0"/>
      <xs:element name="prepaid_expenses" type="xs:long" form="qualified" minOccurs="0"/>
      <xs:element name="other_current_assets" type="xs:long" form="qualified" minOccurs="0"/>
      <xs:element name="owing_due_from_group_assoc" type="xs:long" form="qualified" minOccurs="0"/>
      <xs:element name="deffered_taxation" type="xs:long" form="qualified" minOccurs="0"/>
      <xs:element name="due_to_group_assoc_comp" type="xs:long" form="qualified" minOccurs="0"/>
      <xs:element name="other_current_liabilities" type="xs:long" form="qualified" minOccurs="0"/>
      <xs:element name="due_to_group_comp_over_one_year" type="xs:long" form="qualified" minOccurs="0"/>
      <xs:element name="hire_purchase_due_after_one_year" type="xs:long" form="qualified" minOccurs="0"/>
      <xs:element name="share_premium_accounts" type="xs:long" form="qualified" minOccurs="0"/>
      <xs:element name="pension_liability" type="xs:long" form="qualified" minOccurs="0"/>
      <xs:element name="minority_interest" type="xs:long" form="qualified" minOccurs="0"/>
      <xs:element name="interest_receivable" type="xs:long" form="qualified" minOccurs="0"/>
      <xs:element name="mortgage_loans" type="xs:long" form="qualified" minOccurs="0"/>
      <xs:element name="provisions" type="xs:long" form="qualified" minOccurs="0"/>
      <xs:element name="change_in_shareholders_funds" type="xs:long" form="qualified" minOccurs="0"/>
    </xs:all>
  </xs:complexType>

  <xs:complexType name="credit_report_balance_sheet">
    <xs:sequence>
      <xs:element name="balance_sheet" type="tns:balance_sheet" form="qualified" maxOccurs="unbounded" minOccurs="0"/>
    </xs:sequence>
  </xs:complexType>

  <xs:complexType name="judgments_summary">
    <xs:all>
      <xs:element name="judgments_last_date" type="xs:string" form="qualified" minOccurs="0"/>
      <xs:element name="judgments_last_ago" type="xs:string" form="qualified" minOccurs="0"/>
      <xs:element name="judgments_total_count" type="xs:integer" form="qualified"/>
      <xs:element name="judgments_unsatisfied_count" type="xs:integer" form="qualified"/>
      <xs:element name="judgments_satisfied_count" type="xs:integer" form="qualified"/>
      <xs:element name="judgments_amount_total" type="xs:integer" form="qualified"/>
    </xs:all>
  </xs:complexType>

  <xs:complexType name="shareholders">
    <xs:all>
      <xs:element form="qualified" name="shares_issued_total" type="xs:integer" minOccurs="0"/>
      <xs:element form="qualified" name="share_summary" type="tns:share_summary" minOccurs="0"/>
      <xs:element form="qualified" name="error_message" type="xs:string" minOccurs="0"/>
      <xs:element form="qualified" name="aggregate_nominal_value_total" type="xs:integer" minOccurs="0"/>
      <xs:element form="qualified" name="shareholder_details" type="tns:shareholder_details" minOccurs="0"/>
    </xs:all>
  </xs:complexType>

  <xs:complexType name="judgments">
    <xs:sequence>
      <xs:element name="judgments_summary" type="tns:judgments_summary" form="qualified"/>
    </xs:sequence>
  </xs:complexType>

  <xs:complexType name="shareholder">
    <xs:all>
      <xs:element name="shareholder_name" type="xs:string" form="qualified" minOccurs="0"/>
      <xs:element name="shareholder_surname" type="xs:string" form="qualified" minOccurs="0"/>
      <xs:element name="director" type="xs:string" form="qualified" minOccurs="0"/>
      <xs:element name="shareholder_company_name" type="xs:string" form="qualified" minOccurs="0"/>
      <xs:element name="shareholder_company_number" type="xs:string" form="qualified" minOccurs="0"/>
      <xs:element name="shareholder_address_1" type="xs:string" form="qualified" minOccurs="0"/>
      <xs:element name="shareholder_address_2" type="xs:string" form="qualified" minOccurs="0"/>
      <xs:element name="shareholder_address_3" type="xs:string" form="qualified" minOccurs="0"/>
      <xs:element name="shareholder_address_4" type="xs:string" form="qualified" minOccurs="0"/>
      <xs:element name="number_of_shares" type="xs:integer" form="qualified" minOccurs="0"/>
      <xs:element name="class_type" type="xs:string" form="qualified" minOccurs="0"/>
      <xs:element name="currency" type="xs:string" form="qualified" minOccurs="0"/>
      <xs:element name="shareholder_address_6" type="xs:string" form="qualified" minOccurs="0"/>
      <xs:element name="shareholder_address_5" type="xs:string" form="qualified" minOccurs="0"/>
      <xs:element name="county_id" type="xs:int" form="qualified" minOccurs="0"/>
      <xs:element name="country" type="xs:string" form="qualified" minOccurs="0"/>
    </xs:all>
  </xs:complexType>

  <xs:complexType name="credit_report_key_ratios">
    <xs:sequence>
      <xs:element name="key_ratio" type="tns:key_ratio" form="qualified" maxOccurs="unbounded"/>
    </xs:sequence>
  </xs:complexType>

  <xs:complexType name="key_ratio">
    <xs:all>
      <xs:element name="balance_sheet_year" type="xs:integer" form="qualified"/>
      <xs:element name="balance_sheet_month" type="xs:integer" form="qualified"/>
      <xs:element name="current_ratio" type="xs:float" form="qualified" minOccurs="0"/>
      <xs:element name="quick_ratio" type="xs:float" form="qualified" minOccurs="0"/>
      <xs:element name="gearing_ratio" type="xs:float" form="qualified" minOccurs="0"/>
      <xs:element name="capital_employed_ratio" type="xs:float" form="qualified" minOccurs="0"/>
    </xs:all>
  </xs:complexType>

  <xs:complexType name="credit_report_profit_and_loss">
    <xs:sequence>
      <xs:element name="profit_and_loss" type="tns:profit_and_loss" form="qualified" maxOccurs="unbounded" minOccurs="0"/>
    </xs:sequence>
  </xs:complexType>

  <xs:complexType name="shareholder_details">
    <xs:sequence>
      <xs:element name="shareholder" type="tns:shareholder" form="qualified" maxOccurs="unbounded"/>
    </xs:sequence>
  </xs:complexType>

  <xs:complexType name="name">
    <xs:all>
      <xs:element name="number" type="xs:integer" form="qualified"/>
      <xs:element name="name" type="xs:string" form="qualified"/>
      <xs:element name="status" type="xs:string" form="qualified"/>
      <xs:element name="reg_date" type="xs:string" form="qualified"/>
    </xs:all>
  </xs:complexType>

  <xs:complexType name="shared_directorships">
    <xs:sequence>
      <xs:element form="qualified" name="shared_directorship" type="tns:shared_directorship" maxOccurs="unbounded" minOccurs="0"/>
    </xs:sequence>
  </xs:complexType>

  <xs:complexType name="shared_directorship">
    <xs:all>
      <xs:element name="company_num" type="xs:int" form="qualified"/>
      <xs:element name="company_name" type="xs:string" form="qualified"/>
    </xs:all>
  </xs:complexType>

  <xs:complexType name="share_summary">
    <xs:sequence>
      <xs:element name="share_class" type="tns:share_class" form="qualified" maxOccurs="unbounded"/>
    </xs:sequence>
  </xs:complexType>

  <xs:complexType name="riskwatch_details">
    <xs:sequence>
      <xs:element minOccurs="0" name="riskwatch_notices" type="tns:riskwatch_notices" form="qualified"/>
      <xs:element minOccurs="0" name="riskwatch_documents" type="tns:riskwatch_documents" form="qualified"/>
    </xs:sequence>
  </xs:complexType>

  <xs:complexType name="riskwatch_notices">
    <xs:sequence>
      <xs:element name="riskwatch_notice" type="tns:riskwatch_notice" form="qualified" maxOccurs="unbounded"/>
    </xs:sequence>
  </xs:complexType>

  <xs:complexType name="riskwatch_documents">
    <xs:sequence>
      <xs:element name="document" type="tns:document" form="qualified" maxOccurs="unbounded"/>
    </xs:sequence>
  </xs:complexType>

  <xs:complexType name="riskwatch_notice">
    <xs:sequence>
      <xs:element name="riskwatch_id" type="xs:integer" form="qualified"/>
      <xs:element name="loaded_date" type="xs:string" form="qualified"/>
      <xs:element name="story_date" type="xs:string" form="qualified"/>
      <xs:element name="source_description" type="xs:string" form="qualified"/>
      <xs:element name="story_type_description" minOccurs="0" type="xs:string" form="qualified"/>
      <xs:element name="positive_meaning" type="xs:integer" form="qualified"/>
      <xs:element name="meeting_date" minOccurs="0" type="xs:string" form="qualified"/>
      <xs:element name="meeting_place" minOccurs="0" type="xs:string" form="qualified"/>
      <xs:element name="meeting_type_desc" minOccurs="0" type="xs:string" form="qualified"/>
      <xs:element name="appointee_type" minOccurs="0" type="xs:string" form="qualified"/>
      <xs:element name="appointee" minOccurs="0" type="xs:string" form="qualified"/>
      <xs:element name="court_order_date" minOccurs="0" type="xs:string" form="qualified"/>
      <xs:element name="presentation_date" minOccurs="0" type="xs:string" form="qualified"/>
      <xs:element name="hearing_date" minOccurs="0" type="xs:string" form="qualified"/>
      <xs:element name="tax_settlement_amount" minOccurs="0" type="xs:float" form="qualified"/>
    </xs:sequence>
  </xs:complexType>

  <xs:complexType name="anacredit">
    <xs:all>
      <xs:element name="institutional_sector" type="xs:string" form="qualified" minOccurs="0"/>
      <xs:element name="legal_form" type="xs:string" form="qualified" minOccurs="0"/>
      <xs:element name="legal_proceedings" type="xs:string" form="qualified"/>
      <xs:element name="irish_county_code" type="xs:integer" form="qualified"/>
      <xs:element name="administrative_division" type="xs:integer" form="qualified"/>
    </xs:all>
  </xs:complexType>

  <xs:complexType name="audit_details">
    <xs:all>
      <xs:element name="accounts_audited" type="xs:string" form="qualified"/>
      <xs:element name="auditor_name" type="xs:string" form="qualified" minOccurs="0"/>
      <xs:element name="auditor_address" type="xs:string" form="qualified" minOccurs="0"/>
      <xs:element name="auditor_opinion" type="xs:string" form="qualified" minOccurs="0"/>
    </xs:all>
  </xs:complexType>
</xs:schema>
