Most common errors in XML feed

Parsing error

The error is caused by the use of special characters in the text (&, <, >).

Example of an error

<PRODUCTNAME>Světélkující podložka pod myš, rozměry < 20x20cm</PRODUCTNAME>
<BRAND>Bohouš & synové</BRAND>

Solution: These characters need to be replaced by an XML entity (&, <, >).

<PRODUCTNAME>Světélkující podložka pod myš, rozměry &lt; 20x20cm</PRODUCTNAME>
<BRAND>Bohouš &amp; synové</BRAND>

XML tag crossing

When creating an XML feed, it is necessary to follow the sequence of “opening” and “closing” tags.

Example of an error

<SHOP>
 <SHOPITEM>
 <!-- ... -->
 <URL>http://example.com/podlozky-pod-mys/fosfor</URL>
 <IMGURL>http://example.com/obrazky/podlozky-pod-mys/fosfor.jpg</IMGURL>
 <PRICE_VAT>756</PRICE_VAT>
 </SHOP>
 </SHOPITEM>

Invalid characters in the URL

The URL must not contain Czech diacritics, spaces or other non-standard characters.

Example of an error

<SHOP>
 <SHOPITEM>
 <!-- ... -->
 <URL>http://example.com/podlozky-pod-mys/svetelkujici podlozka</URL>
 <IMGURL>http://example.com/obrazky/podlozky-pod-mys/obrázek myši.jpg</IMGURL>
 </SHOPITEM>
 </SHOP>

Solution: URL encoding for Czech and special characters in URLs

<SHOP>
 <SHOPITEM>
 <!-- ... -->
 <URL>http://example.com/podlozky-pod-mys/svetelkujici%20podlozka</URL>
 <IMGURL>http://example.com/obrazky/podlozky-pod-mys/obr%C3%A1zek%20my%C5%A1i.jpg</IMGURL>
 </SHOPITEM>
 </SHOP>

Absence of XML tag

XML tags are paired, i.e. they need to be opened and then closed.

<SHOP> ... </SHOP>

Example of an error

<SHOP>
 <SHOPITEM>
 <PRODUCTNAME>Světélkující podložka pod myš</PRODUCTNAME>
 <!-- ... -->
 <!-- chybí konec tagu SHOPITEM -->
 <SHOPITEM>
 <PRODUCTNAME>Hrající podložka pod myš</PRODUCTNAME>
 <!-- ... -->
 </SHOP>

Placing a tag outside the allowed tag

It is necessary to stick to the placement of individual tags in the XML feed.

Example of an error

<SHOP>
 <DESCRIPTION>Obchod se vším možným</DESCRIPTION>
 <SHOPITEM>
 <PRODUCTNAME>Světélkující podložka pod myš</PRODUCTNAME>
 <!-- ... -->
 </SHOPITEM>
 </SHOP>

Incorrect XML tag entry

Example of an error

<SCHOP>
 <SHOPITEM>
 <!-- ... -->
 </SHOPITEM>
 </SHOP>

Download error (false-download)

Feed is not available, we probably have an outdated or incorrect XML feed URL.

Solution: Email us the correct feed location address.

Not displaying images of individual offers

If the robot encounters an image URL while processing the XML feed, it waits a maximum of 5 seconds for the image to download. If it fails to download the image within 5 seconds, it skips the image and continues processing the XML feed. If this error occurs 100 times during processing, no more images are downloaded. So if you don’t have fast enough hosting or it was too busy during the image download, it is possible that not all images were downloaded.

Incorrect price format

The price must be entered in one of the following formats.

<PRICE_VAT>5786</PRICE_VAT>
<PRICE_VAT>5786.90</PRICE_VAT>
<PRICE_VAT>5786,35</PRICE_VAT>

Examples of incorrect input

<PRICE_VAT>12345.50 Kč</PRICE_VAT>
 <PRICE_VAT>12 345.50</PRICE_VAT>
 <PRICE_VAT>-12345.50</PRICE_VAT>
 <PRICE_VAT>0</PRICE_VAT>

Absence of availability tag

Availability information is one of the mandatory tags. Without it, the offer cannot be processed and displayed in the search results on Zboží.cz. Therefore, check whether each offer listed in the XML feed has the corresponding value in the DELIVERY_DATE tag.

Need more help?

If you are still unsure, please contact our consultants.