<?xml version="1.0" encoding="UTF-8"?>
<!--  On Updates Teams - v3.26  -->
<!--  File: on_update_teams_3.26.xsd  -->
<!--  Copyright 2017-present. Gracenote, Inc. All rights reserved.  -->
<xs:schema
        xmlns:xs="http://www.w3.org/2001/XMLSchema" elementFormDefault="qualified" attributeFormDefault="unqualified"
        version="3.26">
  <xs:include schemaLocation="http://files.api.gracenote.com/xsd/types_3.26.xsd"/>
  <xs:element name="on">
    <xs:complexType>
      <xs:sequence>
        <xs:element ref="header"/>
        <xs:element ref="teams" minOccurs="0"/>
      </xs:sequence>
      <xs:attribute name="schemaVersion" type="xs:decimal" use="optional" default="3.26">
        <xs:annotation>
          <xs:documentation>The On Updates schema version number.</xs:documentation>
        </xs:annotation>
      </xs:attribute>
    </xs:complexType>
  </xs:element>
  <xs:element name="teams">
    <xs:complexType>
      <xs:sequence>
        <xs:element name="team" minOccurs="0" maxOccurs="unbounded">
          <xs:complexType>
            <xs:sequence minOccurs="0">
              <xs:element name="type" type="xs:string" minOccurs="0"/>
              <xs:element name="teamBrands" minOccurs="0">
                <xs:complexType>
                  <xs:sequence>
                    <xs:element name="teamBrand" maxOccurs="unbounded">
                      <xs:complexType>
                        <xs:sequence>
                          <xs:element name="teamBrandId" type="xs:positiveInteger" minOccurs="0"/>
                          <xs:element name="teamBrandGId" type="xs:string" minOccurs="0">
                            <xs:annotation>
                              <xs:documentation>The TeamBrandGId of the TeamBrandId.</xs:documentation>
                            </xs:annotation>
                          </xs:element>
                          <xs:element name="active" type="xs:boolean">
                            <xs:annotation>
                              <xs:documentation>Indicator whether this Brand is the active brand or not.</xs:documentation>
                            </xs:annotation>
                          </xs:element>
                          <xs:element name="fromDate" type="xs:string" minOccurs="0"/>
                          <xs:element name="toDate" type="xs:string" minOccurs="0">
                            <xs:annotation>
                              <xs:documentation>The start and end date for when this Brand is or was the active Brand.</xs:documentation>
                            </xs:annotation>
                          </xs:element>
                          <xs:element name="officialName" type="xs:string" minOccurs="0"/>
                          <xs:element name="properName" type="xs:string" minOccurs="0"/>
                          <xs:element name="nickName" type="xs:string" minOccurs="0"/>
                          <xs:element name="abbreviation" type="xs:string" minOccurs="0"/>
                          <xs:element name="names" minOccurs="0" maxOccurs="1">
                            <xs:complexType>
                              <xs:sequence>
                                <xs:element name="name" maxOccurs="unbounded">
                                  <xs:complexType>
                                    <xs:simpleContent>
                                      <xs:extension base="xs:string">
                                        <xs:attribute name="type" type="xs:string" use="required"/>
                                        <xs:attribute name="lang" type="xs:string" use="required"/>
                                      </xs:extension>
                                    </xs:simpleContent>
                                  </xs:complexType>
                                </xs:element>
                              </xs:sequence>
                              <xs:attribute name="lang" type="xs:string" use="optional"/>
                            </xs:complexType>
                          </xs:element>
                          <xs:element name="assets" minOccurs="0">
                            <xs:complexType>
                              <xs:sequence>
                                <xs:element name="asset" type="assetType" maxOccurs="unbounded">
                                  <xs:annotation>
                                    <xs:documentation>Single image and metadata.</xs:documentation>
                                  </xs:annotation>
                                </xs:element>
                              </xs:sequence>
                            </xs:complexType>
                          </xs:element>
                        </xs:sequence>
                      </xs:complexType>
                    </xs:element>
                  </xs:sequence>
                </xs:complexType>
              </xs:element>
              <xs:element name="sport" minOccurs="0">
                <xs:annotation>
                  <xs:documentation>Single primary sport genre in which team participates.</xs:documentation>
                </xs:annotation>
                <xs:complexType>
                  <xs:simpleContent>
                    <xs:extension base="xs:string">
                      <xs:attribute name="genreId" type="xs:positiveInteger" use="required"/>
                    </xs:extension>
                  </xs:simpleContent>
                </xs:complexType>
              </xs:element>
              <xs:element name="genres" minOccurs="0">
                <xs:annotation>
                  <xs:documentation>Collection of genres associated with team, based on organization memberships; may
                    include non-sport-specific genres, such as Olympics, where applicable.
                  </xs:documentation>
                </xs:annotation>
                <xs:complexType>
                  <xs:sequence>
                    <xs:element name="genre" maxOccurs="unbounded">
                      <xs:complexType>
                        <xs:simpleContent>
                          <xs:extension base="xs:string">
                            <xs:attribute name="genreId" type="xs:positiveInteger" use="required"/>
                          </xs:extension>
                        </xs:simpleContent>
                      </xs:complexType>
                    </xs:element>
                  </xs:sequence>
                </xs:complexType>
              </xs:element>
              <xs:element name="colors" minOccurs="0">
                <xs:complexType>
                  <xs:sequence>
                    <xs:element name="color" minOccurs="0" maxOccurs="unbounded">
                      <xs:complexType>
                        <xs:simpleContent>
                          <xs:extension base="xs:string">
                            <xs:attribute name="type" type="xs:string" use="required"/>
                          </xs:extension>
                        </xs:simpleContent>
                      </xs:complexType>
                    </xs:element>
                  </xs:sequence>
                </xs:complexType>
              </xs:element>
              <xs:element name="parentTeam" minOccurs="0">
                <xs:annotation>
                  <xs:documentation>Team designated as parent for this sub-team.</xs:documentation>
                </xs:annotation>
                <xs:complexType>
                  <xs:attribute name="teamId" type="xs:positiveInteger" use="required"/>
                  <xs:attribute name="teamGId" type="xs:string" use="optional">
                    <xs:annotation>
                      <xs:documentation>The TeamGId of the parent team</xs:documentation>
                    </xs:annotation>
                  </xs:attribute>
                </xs:complexType>
              </xs:element>
              <xs:element name="venueId" type="xs:positiveInteger" minOccurs="0"/>
              <xs:element name="universityId" type="xs:positiveInteger" minOccurs="0"/>
              <xs:element name="universityGId" type="xs:string" minOccurs="0">
                <xs:annotation>
                  <xs:documentation>The UniversityGId of the UniversityId.</xs:documentation>
                </xs:annotation>
              </xs:element>
              <xs:element name="country" type="xs:token" minOccurs="0">
                <xs:annotation>
                  <xs:documentation>Country represented by team in international sporting events. Country code given in
                    ISO 3166-1 alpha-3 format.
                  </xs:documentation>
                </xs:annotation>
              </xs:element>
              <xs:element name="gender" type="genderType" minOccurs="0"/>
              <xs:element name="class" type="xs:string" minOccurs="0" />
              <xs:element name="venueGId" type="xs:string" minOccurs="0">
                <xs:annotation>
                  <xs:documentation>The VenueGId of the VenueId.</xs:documentation>
                </xs:annotation>
              </xs:element>
              <xs:element name="address" type="addressType" minOccurs="0"/>
              <xs:element name="members" minOccurs="0">
                <xs:annotation>
                  <xs:documentation>Parent element for persons related to team.</xs:documentation>
                </xs:annotation>
                <xs:complexType>
                  <xs:sequence>
                    <xs:element name="member" maxOccurs="unbounded">
                      <xs:complexType>
                        <xs:sequence>
                          <xs:element name="type" type="memberType"/>
                          <xs:element name="name">
                            <xs:complexType>
                              <xs:complexContent>
                                <xs:extension base="pNameType">
                                  <xs:attribute name="nameId" type="xs:positiveInteger"/>
                                </xs:extension>
                              </xs:complexContent>
                            </xs:complexType>
                          </xs:element>
                        </xs:sequence>
                        <xs:attribute name="personId" type="xs:positiveInteger"/>
                      </xs:complexType>
                    </xs:element>
                  </xs:sequence>
                </xs:complexType>
              </xs:element>
            </xs:sequence>
            <xs:attribute name="teamId" type="xs:positiveInteger" use="required"/>
            <xs:attribute name="teamGId" type="xs:string" use="optional">
              <xs:annotation>
                <xs:documentation>The TeamGId of the TeamId.</xs:documentation>
              </xs:annotation>
            </xs:attribute>
            <xs:attribute name="sportGId" type="xs:string" use="optional">
              <xs:annotation>
                <xs:documentation>The SportGId of the sport that's played in this Organization.</xs:documentation>
              </xs:annotation>
            </xs:attribute>
            <xs:attribute ref="updateId" use="required"/>
            <xs:attribute name="updateDate" type="xs:dateTime" use="required"/>
            <xs:attribute ref="deleted" use="optional"/>
          </xs:complexType>
        </xs:element>
      </xs:sequence>
    </xs:complexType>
  </xs:element>
</xs:schema>
