New tag “Optional” in XML, JSON and XSD

Avatar for Anastasiia
By
xml json xsd

From the 16th of June 2020, we are adding the new tag “Optional” with parameter values 0 or 1 to the Icecat export files: in XML, JSON and the XSD schema.

Specifications tagged with Optional=”1″ are not standardized specifications in Icecat. These specs are used only for supporting automated data imports from brands, to avoid loosing attribute values.

Old structure XML:

 <ProductFeature Localized="0" ID="357847148" Local_ID="0" Value="Y" CategoryFeature_ID="39564" CategoryFeatureGroup_ID="2687" No="100000" Presentation_Value="Y" Translated="0" Mandatory="0" Searchable="0">
 <LocalValue Value="Y"> 
<Measure ID="26"> 
<Signs/> 
</Measure> 
</LocalValue> 
<Feature ID="838" > 
<Measure ID="26" Sign=""> 
<Signs/> 
</Measure>

New structure XML 

<ProductFeature Localized="0" ID="357847148" Local_ID="0" Value="Y" CategoryFeature_ID="39564" CategoryFeatureGroup_ID="2687" No="100000" Presentation_Value="Y" Translated="0" Mandatory="0" Searchable="0" Optional="0">
<LocalValue Value="Y">
<Measure ID="26">
<Signs/>
</Measure>
</LocalValue>
<Feature ID="838" >
<Measure ID="26" Sign="">
<Signs/>
</Measure>

Old structure JSON:

"Features": [ 
                { 
                    "Localized": 0, 
                      ... 
                     "Searchable": "0", 
                     "Feature": { 
                        "ID": "17956", 
                        "Sign": "", 
                        "Measure": { 
                             "ID": "29", 
                            "Sign": "", 
                            "Signs": { 
                                "ID": "", 
                                "_": "", 
                               "Language": "EN" 
                                  } 
                              }, 
                               "Name": { 
                                       "Value": 
                                       "Colour name", 
                                       "Language": "EN" 
                           } 
                      } 
                 },

New structure JSON:

"Features": [
{
"Localized": 0,
...
"Searchable": "0",
"Optional": "0",
"Feature": {
"ID": "17956",
"Sign": "",
"Measure": {
"ID": "29",
"Sign": "",
"Signs": {
"ID": "",
"_": "",
"Language": "EN"
}
},
"Name": {
"Value":
"Colour name",
"Language": "EN"
}
}
},

New structure XSD

index 8dcdde86d..e889ee1fd 100644 
--- a/www/dtd/ICECAT-interface_response.dtd 
+++ b/www/dtd/ICECAT-interface_response.dtd 
@@ -461,7 +461,8 @@ 
Localized CDATA #IMPLIED 
Mandatory CDATA #IMPLIED 
Searchable CDATA #IMPLIED
Translated CDATA #IMPLIED> 
Translated CDATA #IMPLIED
Optional CDATA #IMPLIED> 
<!ELEMENT FeatureLogo (Descriptions|FeatureLogoCategories|FeatureLogoFeatures)*>
<!ATTLIST FeatureLogo 
diff --git a/www/xsd/ICECAT-interface_response.xsd b/www/xsd/ICECAT-interface_response.xsd 
index 325b0b255..7136fc786 100644 
--- a/www/xsd/ICECAT-interface_response.xsd 
+++ b/www/xsd/ICECAT-interface_response.xsd 
@@ -722,6 +722,7 @@ 
<xs:attribute name="Translated" type="xs:boolean"/> 
<xs:attribute name="Mandatory" type="xs:boolean"/> 
<xs:attribute name="Searchable" type="xs:boolean"/> 
<xs:attribute name="Optional" type="xs:boolean"/> 
</xs:complexType> 
<xs:complexType name="FeatureLogoList">

Leave a Reply

Your email address will not be published. Required fields are marked *

Icecat xml

Open Catalog Interface (OCI): Manual for Open Icecat XML and Full Icecat XML

This document describes the Icecat XML method of Icecat's Open Catalog Inte...
 November 3, 2019
Manual

Manual for Icecat Live: Real-Time Product Data in Your App

Icecat Live is a (free) service that enables you to insert real-time produc...
 June 10, 2022
Icecat CSV Interface

Manual for Icecat CSV Interface

This document describes the manual for Icecat CSV interface (Comma-Separate...
 September 28, 2016
 October 4, 2018
LIVE JS

How to Create a Button that Opens Video in a Modal Window

Recently, our Icecat Live JavaScript interface was updated with two new fun...
 November 3, 2021
Addons plugins

Icecat Add-Ons Overview. NEW: Red Technology

Icecat has a huge list of integration partners, making it easy for clients ...
 October 27, 2023
Manual

Manual for Open Icecat JSON Product Requests

JSON (JavaScript Object Notation) is an increasingly popular means of trans...
 September 17, 2018
 January 20, 2020
New Standard video thumbnail

Autheos video acquisition completed

July 21, Icecat and Autheos jointly a...
 September 7, 2021
Personalized Interface File and Catalog from Icecat

Manual Personalized Interface File and Catalog from Icecat

With Icecat, you can generate personalized or customized CSV or Excel files...
 May 3, 2022