Interpreter

How to Move XML Attributes into CSV Columns

2026-06-20
Task

Part of the product data is stored in XML attributes, for example id and code. The result should be a table file where these attributes are regular CSV or XLSX columns.

Short answer

Add the XML file as a source in an interpreter profile and choose CSV or XLSX as the result format. In the table editor, check the id, code, and name columns.

How to Do It in Eofferix

  1. In Interpreter, create or open a profile. Add the XML file as the data source and choose CSV or XLSX as the export format.
  2. Click Continue to open the table editor. XML attributes should appear as separate result columns.
    Table editor after converting XML attributes to CSV columns
    The table editor shows XML attributes as result columns: id, code, and name. The settings icon for id is highlighted.
  3. If a column is not mapped automatically, open its settings and choose the required source: for id, the XML attribute id; for name, the XML node name.

What matters for the result

  • Select the repeating XML product node first, for example offer: attributes are read relative to it.
  • If an attribute does not appear as a column automatically, create the column manually and bind it to the needed attribute.
  • Check several rows: a missing attribute should produce an empty cell, not shift data.

Before / After

Before

XML
<offers>
  <offer id="1001" code="A-10">
    <name>Office chair</name>
  </offer>
  <offer id="1002" code="B-25">
    <name>Desk lamp</name>
  </offer>
</offers>

After

CSV / XLSX
idcodename
1001A-10Office chair
1002B-25Desk lamp

Process data faster with Eofferix

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

Sign up