Structure of parameters.xml file

Technical Specification
Language used in this document: English (en-US)

The parameters.xml file defines all parameters of products, that may be useful for detailed, technical description of products. File consists of three independent lists:

  • <sections> – contains all visual sections and can be used to separate consecutive parameters assigned to product,
  • <parameters> – contains all parameters assigned to products in offer,
  • <values> – contains all parameters' values.

All elements nested in following lists have the @id attribute, which has to be unique in the parameters.xml file. @id attribute is used to identify parameters, parameters' values and sections with the full.xml.

Every element of <section>, <parameter>, <value> can contain:

  • name in different languages – by means of xml:lang attribute in <name> tag,
  • description in different languages – by means of xml:lang attribute in <description> tag,
  • icons in different languages – by means of xml:lang attribute in <card> and <list> tagsnested in <icons>.

XML Example plik parameters (XML) file

<?xml version="1.0" encoding="UTF-8"?>
<parameters file_format="IOF" version="3.0" language="eng" generated="2018-04-12 12:00:00">
    <sections>
        <section id="756" name="Technical data">
            <name xml:lang="eng"><![CDATA[Technical data]]></name>
            <name xml:lang="pol"><![CDATA[Dane techniczne]]></name>
        </section>
        <section id="757" name="Product appearance">
            <name xml:lang="eng"><![CDATA[Product appearance]]></name>
            <name xml:lang="pol"><![CDATA[Wygląd produktu]]></name>
        </section>
        <section id="758" name="Product construction">
            <name xml:lang="eng"><![CDATA[Product construction]]></name>
            <name xml:lang="pol"><![CDATA[Budowa produktu]]></name>
        </section>
    </sections>
    <parameters>
        <parameter id="706" name="Colour">
            <name xml:lang="eng"><![CDATA[Colour]]></name>
            <name xml:lang="pol"><![CDATA[Kolor]]></name>
            <description xml:lang="eng"><![CDATA[Information about used colors]]></description>        
            <description xml:lang="pol"><![CDATA[Informacja o użytych kolorach]]></description>            
            <icons>
                <card xml:lang="eng" url="https://upload.wikimedia.org/wikipedia/commons/7/70/Example.png"/>
                <card xml:lang="pol" url="https://upload.wikimedia.org/wikipedia/commons/7/70/Example.png"/>
                <list xml:lang="eng" url="https://upload.wikimedia.org/wikipedia/commons/7/70/Example.png"/>
                <list xml:lang="pol" url="https://upload.wikimedia.org/wikipedia/commons/7/70/Example.png"/>
            </icons>
        </parameter>
        <parameter id="707" name="Material">
            <name xml:lang="eng"><![CDATA[Material]]></name>
            <name xml:lang="pol"><![CDATA[Materiał]]></name>
        </parameter>
        <parameter id="708" name="Model">
            <name xml:lang="eng"><![CDATA[Model]]></name>
            <name xml:lang="pol"><![CDATA[Model]]></name>
        </parameter>
    </parameters>
    <values>
        <value id="779" name="green">
            <name xml:lang="eng"><![CDATA[green]]></name>
            <name xml:lang="pol"><![CDATA[zielony]]></name>
        </value>
        <value id="780" name="red">
            <name xml:lang="eng"><![CDATA[red]]></name>
            <name xml:lang="pol"><![CDATA[czerwony]]></name>
        </value>
        <value id="781" name="blue">
            <name xml:lang="eng"><![CDATA[bue]]></name>
            <name xml:lang="pol"><![CDATA[niebieski]]></name>
        </value>
        <value id="782" name="amethyst">
            <name xml:lang="eng"><![CDATA[amethyst]]></name>
            <name xml:lang="pol"><![CDATA[agat]]></name>
        </value>
        <value id="783" name="cotton">
            <name xml:lang="eng"><![CDATA[cotton]]></name>
            <name xml:lang="pol"><![CDATA[bawełna]]></name>
        </value>
        <value id="784" name="cashmere">
            <name xml:lang="eng"><![CDATA[cashmere]]></name>
            <name xml:lang="pol"><![CDATA[kaszmir]]></name>
        </value>
        <value id="785" name="optimum">
            <name xml:lang="eng"><![CDATA[optimum]]></name>
            <name xml:lang="pol"><![CDATA[optimum]]></name>
        </value>
        <value id="786" name="standard">
            <name xml:lang="eng"><![CDATA[standard]]></name>
            <name xml:lang="pol"><![CDATA[standard]]></name>
        </value>
        <value id="787" name="supreme">
            <name xml:lang="eng"><![CDATA[supreme]]></name>
            <name xml:lang="pol"><![CDATA[supreme]]></name>
            <description xml:lang="eng"><![CDATA[Supreme is a fast drying, breathable and easy to wash material]]></description>
            <description xml:lang="pol"><![CDATA[Supreme jest materiałem szybkoschnącym, przewiewnym i łatwym w praniu]]></description>    
            <icons>
                <card xml:lang="eng" url="https://upload.wikimedia.org/wikipedia/commons/7/70/Example.png"/>
                <card xml:lang="pol" url="https://upload.wikimedia.org/wikipedia/commons/7/70/Example.png"/>
                <list xml:lang="eng" url="https://upload.wikimedia.org/wikipedia/commons/7/70/Example.png"/>
                <list xml:lang="pol" url="https://upload.wikimedia.org/wikipedia/commons/7/70/Example.png"/>
            </icons>
        </value>
    </values>
</parameters>

XML Schema Validator: plik parameters (XSD) file