Small tasks. A little easier.157 tools · No account required

Find your next tool

Search all 157 tools and their practical guides.

Developer

Convert repeated XML records into CSV rows

Flatten a list of simple records into a table with one column per field or attribute.

ERITHRA editorial2 min read
Convert repeated XML records into CSV rows example showing <items><item> · <name>Camera</name> · </item></items> becoming name · Camera.
Convert repeated XML records into CSV rows exampleRepeated elements become table rows. Simple child elements become columns.

Try it with a small example

Flatten a list of simple records into a table with one column per field or attribute. Open the workspace.

For a products root containing repeated product elements with name and price fields, each product becomes a row. An id attribute becomes an attribute:id column.

Follow these steps

  1. Choose XML with repeated records immediately beneath one root element.
  2. Convert the file and review the columns in the preview.
  3. Download the CSV and check that empty fields line up with the right columns.

Check the export

Nested or repeated fields are ambiguous in a flat table and produce an error. Use XML to JSON for nested data.

Developerxml to csv

Put it into practice

Keep reading