IMPORTANT:
this is not a Support Forum! Experienced users might answer from time to time questions posted here. If you need a professional and reliable answer, or if you want to report a bug, please contact Altova Support instead.

Mapping from CSV files Options · View
BjornJonsson4510
Posted: Wednesday, January 20, 2021 11:42:34 PM
Rank: Newbie

Joined: 1/20/2021
Posts: 1
Location: Sweden
Hi all,

I have a little bit of a tricky situation. In a project we need to take about 6000 rows with about 50 attributes in a CSV file and map the attributes in MF using the XSD.
This is no issue...But the receiving part for the XML files need to have 1 XML file for each row in the CSV file. So can we in MF create different output XML files for each Row when running Built-in execution?

Any thoughts i'm stuck.

Rgds
Bjorn
that
Posted: Thursday, January 21, 2021 10:50:02 AM
Rank: Advanced Member

Joined: 6/16/2006
Posts: 486
Location: AT
In your target component, click the File/String button and choose "Use dynamic file names supplied by mapping". Then connect something to the "File" input that creates a file name, e.g. a concat component with some field that is unique in each input CSV row and an ".xml" constant. Or instead of a unique field, you can use the position function on the input row node to create unique numbers.
Users browsing this topic
guest

Forum Jump
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.

Use of the Altova User Forum(s) is governed by the Altova Terms of Use.