<?xml version="1.0" encoding="utf-8"?>
<xs:schema attributeFormDefault="unqualified" elementFormDefault="qualified" xmlns:xs="http://www.w3.org/2001/XMLSchema">
  <xs:annotation>
    <xs:documentation>Title: Entity Attribute Value Import Schema</xs:documentation>
    <xs:documentation>The Entity Attribute Value import is used to import values for a Basket Attribute.</xs:documentation>
    <xs:documentation>NOTE:   If a 'display' is not supplied against an item, the item value will be used.</xs:documentation>
    <xs:documentation>The 'deleted' attribute supports values of 'true' or 'false'.</xs:documentation>
    <xs:documentation>Version 1.0 : 2014-07-14.  Initial schema creation.</xs:documentation>
    <xs:documentation>    Version 1.1 : 2017-01-09.  Amended to include data lengths and descriptions.</xs:documentation>
    <xs:documentation>    Version 1.2 : 2017-03-20.  Minor validation corrections.</xs:documentation>
    <xs:documentation>    Version 1.3 : 2018-04-18.  Company key is now optional as it is provided in the REST url (though required for WCF).</xs:documentation>
    <xs:documentation></xs:documentation>
  </xs:annotation>
  <xs:element name="import">
    <xs:complexType>
      <xs:all>
        <xs:element minOccurs="0" maxOccurs="1" name="items">
          <xs:complexType>
            <xs:sequence>
              <xs:element minOccurs="0" maxOccurs="1000" name="item">
                <xs:annotation>
                  <xs:documentation>The node inner text contains the attribute value</xs:documentation>
                </xs:annotation>
                <xs:complexType>
                  <xs:simpleContent>
                    <xs:extension base="xs:string">
                      <xs:attribute name="display" use="optional">
                        <xs:annotation>
                          <xs:documentation>Where available, a display version of the value.</xs:documentation>
                        </xs:annotation>
                        <xs:simpleType>
                          <xs:restriction base="xs:string">
                            <xs:maxLength value="200" />
                          </xs:restriction>
                        </xs:simpleType>
                      </xs:attribute>
                      <xs:attribute name="deleted" type="xs:boolean" use="optional">
                        <xs:annotation>
                          <xs:documentation>Flag indicating whether the attribute value should be deleted.</xs:documentation>
                        </xs:annotation>
                      </xs:attribute>
                    </xs:extension>
                  </xs:simpleContent>
                </xs:complexType>
              </xs:element>
            </xs:sequence>
          </xs:complexType>
        </xs:element>
      </xs:all>
      <xs:attribute name="attributetoken" use="required">
        <xs:annotation>
          <xs:documentation>The token for the attribute to be used when importing values.  To view the token for an attribute, navigate to Configuration / All attributes and select the required attribute.</xs:documentation>
        </xs:annotation>
        <xs:simpleType>
          <xs:restriction base="xs:string">
            <xs:minLength value="1" />
            <xs:maxLength value="100" />
          </xs:restriction>
        </xs:simpleType>
      </xs:attribute>
      <xs:attribute name="companykey" type="xs:string" use="optional">
        <xs:annotation>
          <xs:documentation>The company key assigned to your company.  To view the company key navigate to Configuration / Manage Company.</xs:documentation>
        </xs:annotation>
      </xs:attribute>
      <xs:anyAttribute processContents="skip" />
    </xs:complexType>
  </xs:element>
</xs:schema>