Skip to main content Skip to complementary content

Combining several inputs into a single output

Join two CSV structures into an XML structure with nested loops.

About this task

This example uses the following CSV input files, the first one contains information about customers, and the second one about bills.
id;name;city
111;John;New York
591;Billy;Los Angeles
891;Bob;Chicago
customerId;billId;price
111;asd-589;123.58
891;111-gfs;3.58
591;sry-84u;352.89
891;8j9-t44;99.95
591;xoi-htr;36.55
891;999-gre;799.95

The goal of this transformation is to get an XML file with an element for each customer containing their information and their bills.

Did this page help you?

If you find any issues with this page or its content – a typo, a missing step, or a technical error – please let us know!