New tag “Optional” in XML, JSON and XSD

Avatar for Anastasiia
By
xml json xsd
Likethumbsup(2)Dislikesthumbsdown(0)

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">

Subscribe to our newsletter and stay updated.
Loading

Leave a Reply

Your email address will not be published.

Icecat xml
 November 3, 2019
 October 4, 2018
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
Manual for Icecat CSV Interface

Manual for Icecat CSV Interface

This document describes the manual for Icecat CSV interface (Comma-Separate...
 September 28, 2016
Manual

Manual for Open Icecat JSON Product Requests

JSON (JavaScript Object Notation) is an increasingly popular means of trans...
 September 17, 2018
icecat add ons

Icecat Add-ons including Magento, PrestaShop, Shopify, Magento, Google Shopping. NEW: Pimcore

Icecat has a huge list of integration partners, that make it easy for clien...
 August 1, 2020
Manual

Manual for Personalized Interface File and Catalog from Icecat

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

Manual: How to Import Free Product Content Into Your Webshop via Icecat

This guide will quickly show you how to import free product content from Ic...
 February 25, 2022