XML transformation

How to remove XML offers without an image

2026-06-20
Task

An XML feed should export only offer elements with a filled picture element.

Short answer

Enable an element-level export condition on offer: the picture path must be not empty.

How to do it in Eofferix

  1. Open the XML snapshot and select the offer node.
  2. Set export scope to the whole element.
  3. Add a condition: /catalog/offers/offer/picture is not empty.
    XML offer export condition with non-empty picture
    The condition is set on offer, so a product without an image is not exported at all.
  4. Download a demo result and confirm that products without images are removed entirely.

Before / after

The data below is a training example and does not belong to real user files.

Before

source data
<offer id="1001"><picture>https://cdn.example.test/1001.jpg</picture></offer>
<offer id="1002"><picture></picture></offer>

After

result
<offer id="1001"><picture>https://cdn.example.test/1001.jpg</picture></offer>

Process data faster with Eofferix

Create a free account to automate catalogs and price lists around your own rules.

Sign up