New tag “Optional” in XML, JSON and XSD

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 *

manual thumbnail3

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
 September 28, 2016
manual thumbnail
 September 17, 2018

Icecat Add-Ons Overview. NEW: Claude AI, ChatGPT, AgenticFlow.AI, Mindpal.space and BoltAI

Icecat has a huge list of integration partners, making it easy for clients ...
 September 3, 2025
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
 January 20, 2020
New Standard video thumbnail

Autheos video acquisition completed

July 21, Icecat and Autheos jointly a...
 September 7, 2021
Manual How to Import Free Product Content Into Your Webshop via Icecat

Manual: How to Import Free Product Content Into Your E-commerce System via Icecat

This guide will quickly show you how to import free product content from Ic...
 May 24, 2024