<?xml version="1.0" encoding="UTF-8"?>
<!-- Vestoris feed format "classification" version 1.1. Generated from the data set definition; see https://vestoris.com/help/feeds/classification -->
<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns="urn:vestoris:feed:classification:1.1" targetNamespace="urn:vestoris:feed:classification:1.1" elementFormDefault="qualified" attributeFormDefault="unqualified" version="1.1">
  <xs:annotation><xs:documentation>Classifications. Sector, industry, country, asset class, market-cap bucket and ESG flags for securities already in the security master. Updates only; the symbol is the key. Key: symbol.</xs:documentation></xs:annotation>
  <xs:element name="feed">
    <xs:annotation><xs:documentation>One file: the header attributes, then the records.</xs:documentation></xs:annotation>
    <xs:complexType>
      <xs:sequence>
        <xs:element name="record" type="Record" minOccurs="0" maxOccurs="unbounded"/>
      </xs:sequence>
      <xs:attribute name="businessDate" type="xs:date" use="required"><xs:annotation><xs:documentation>The business date the data is for (YYYY-MM-DD).</xs:documentation></xs:annotation></xs:attribute>
      <xs:attribute name="firm" use="required"><xs:annotation><xs:documentation>Your firm code, shown on Data › Feeds (e.g. F00012).</xs:documentation></xs:annotation><xs:simpleType><xs:restriction base="xs:string"><xs:pattern value="[A-Z][0-9]{5}"/></xs:restriction></xs:simpleType></xs:attribute>
      <xs:attribute name="source" use="optional"><xs:annotation><xs:documentation>Who produced the file (vendor or system name).</xs:documentation></xs:annotation><xs:simpleType><xs:restriction base="xs:string"><xs:maxLength value="80"/></xs:restriction></xs:simpleType></xs:attribute>
      <xs:attribute name="generated" type="xs:dateTime" use="required"><xs:annotation><xs:documentation>When the file was produced (UTC).</xs:documentation></xs:annotation></xs:attribute>
      <xs:attribute name="recordCount" type="xs:nonNegativeInteger" use="required"><xs:annotation><xs:documentation>The number of record elements. A file whose count does not match is refused (F004): it was probably cut short.</xs:documentation></xs:annotation></xs:attribute>
      <xs:attribute name="mode" use="optional" default="delta"><xs:annotation><xs:documentation>delta: only the records in the file change. full: the file is complete (this data set has no inactivation: full behaves as delta).</xs:documentation></xs:annotation><xs:simpleType><xs:restriction base="xs:string"><xs:enumeration value="delta"/><xs:enumeration value="full"/></xs:restriction></xs:simpleType></xs:attribute>
    </xs:complexType>
  </xs:element>
  <xs:complexType name="Record">
    <xs:annotation><xs:documentation>One classifications record. Elements may appear in any order.</xs:documentation></xs:annotation>
    <xs:all>
      <xs:element name="symbol" minOccurs="1">
        <xs:annotation><xs:documentation>The security&apos;s ticker symbol (must already exist). The key. A ticker symbol: letters, digits, &quot;.&quot; or &quot;-&quot;, up to 12. Part of the key.</xs:documentation></xs:annotation>
        <xs:simpleType><xs:restriction base="xs:string"><xs:pattern value="[A-Z][A-Z0-9.\-]{0,11}"/></xs:restriction></xs:simpleType>
      </xs:element>
      <xs:element name="sector" minOccurs="0">
        <xs:annotation><xs:documentation>Sector. Text, up to 40 characters.</xs:documentation></xs:annotation>
        <xs:simpleType><xs:restriction base="xs:string"><xs:maxLength value="40"/></xs:restriction></xs:simpleType>
      </xs:element>
      <xs:element name="industry" minOccurs="0">
        <xs:annotation><xs:documentation>Industry. Text, up to 80 characters.</xs:documentation></xs:annotation>
        <xs:simpleType><xs:restriction base="xs:string"><xs:maxLength value="80"/></xs:restriction></xs:simpleType>
      </xs:element>
      <xs:element name="country" minOccurs="0">
        <xs:annotation><xs:documentation>Country of risk. An ISO 3166-1 alpha-2 country code, e.g. US.</xs:documentation></xs:annotation>
        <xs:simpleType><xs:restriction base="xs:string"><xs:pattern value="[A-Z]{2}"/></xs:restriction></xs:simpleType>
      </xs:element>
      <xs:element name="assetClass" minOccurs="0">
        <xs:annotation><xs:documentation>Asset class. One of: equity, fixed_income, commodity, cash_equivalent, treasury, other.</xs:documentation></xs:annotation>
        <xs:simpleType><xs:restriction base="xs:string"><xs:enumeration value="equity"/><xs:enumeration value="fixed_income"/><xs:enumeration value="commodity"/><xs:enumeration value="cash_equivalent"/><xs:enumeration value="treasury"/><xs:enumeration value="other"/></xs:restriction></xs:simpleType>
      </xs:element>
      <xs:element name="marketCapBucket" minOccurs="0">
        <xs:annotation><xs:documentation>Market-cap bucket. One of: mega, large, mid, small.</xs:documentation></xs:annotation>
        <xs:simpleType><xs:restriction base="xs:string"><xs:enumeration value="mega"/><xs:enumeration value="large"/><xs:enumeration value="mid"/><xs:enumeration value="small"/></xs:restriction></xs:simpleType>
      </xs:element>
      <xs:element name="esgFlags" minOccurs="0">
        <xs:annotation><xs:documentation>ESG flags, comma-separated (e.g. fossil, tobacco, weapons). Text, up to 120 characters.</xs:documentation></xs:annotation>
        <xs:simpleType><xs:restriction base="xs:string"><xs:maxLength value="120"/></xs:restriction></xs:simpleType>
      </xs:element>
    </xs:all>
    <xs:attribute name="action" use="optional" default="upsert"><xs:annotation><xs:documentation>upsert (insert or update by key).</xs:documentation></xs:annotation><xs:simpleType><xs:restriction base="xs:string"><xs:enumeration value="upsert"/></xs:restriction></xs:simpleType></xs:attribute>
  </xs:complexType>
</xs:schema>
