# Combinig few XML files into one

**URL:** <https://forum.mergado.com/t/combinig-few-xml-files-into-one/537>\
**Category:** Help Center\
**Created:** [July 19, 2022, 11:55am UTC](https://forum.mergado.com/t/combinig-few-xml-files-into-one/537 "2022-07-19T11:55:22Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![piotr\_miara](https://forum.mergado.com/letter_avatar_proxy/v4/letter/p/59ef9b/32.png) [@piotr\_miara](https://forum.mergado.com/u/piotr_miara)\
**Post date:** [July 19, 2022, 11:55am UTC](https://forum.mergado.com/t/combinig-few-xml-files-into-one/537/1 "2022-07-19T11:55:22Z")

</div>

Hi, is there a possibility to combine few xml’s into one, where data from all the files will be assigned according to the product id.

Exampe:

XML 1 variables:

- product ID
- product manufacturer
- product price

XML 2 variables:

- product ID
- product description,
- product name

I want to create one XML with ale the variables:

- product ID
- product manufacturer
- product price
- product description,
- product name

---

<div class="post-metadata">

**Author:** ![radim](https://forum.mergado.com/user_avatar/forum.mergado.com/radim/32/1418_2.png) [@radim](https://forum.mergado.com/u/radim)\
**Post date:** [July 19, 2022, 3:10pm UTC](https://forum.mergado.com/t/combinig-few-xml-files-into-one/537/2 "2022-07-19T15:10:44Z")

</div>

Hello @piotr_miara,

yes, it is possible to achieve this with Mergado. Follow these steps:

1. Create export in Mergado with Feed 1. If possible, don’t change the format.
2. Create second export with Feed 2 and select Plain CSV as output format.
  - this converts data in Feed 2 into a CSV feed
  - make sure the first column contains the IDs - they are used for mapping the products together.

3. Copy the URL of the output CSV feed to the clipboard.
4. In Export 1, create new elements on the Elements page
  - name the new elements the same as the columns in the CSV feed you want to import (product description, product name, not ID)

5. In Export 1, create a new “Data file import” rule, select the Import from URL option (not upload file), and paste the URL of the output CSV feed from Export 2.
6. Apply rules

Feel free to ask if you need additional help with the above steps.
