<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic TDM : Mapping 1 XML file into Multiple csv files in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/TDM-Mapping-1-XML-file-into-Multiple-csv-files/m-p/2290819#M64063</link>
    <description>&lt;P&gt;Hey guys,&lt;/P&gt;&lt;P&gt;I'm having a trouble with this : I have an xml file that i want to split into multiple csv according to the sublevels that the input file has. Example: &lt;/P&gt;&lt;P&gt;input.xml could look like his.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;I&gt;&amp;lt;animal&amp;gt;&lt;/I&gt;&lt;/P&gt;&lt;P&gt;&lt;I&gt; &amp;lt;animal_id&amp;gt;432&amp;lt;/animal_id&amp;gt;&lt;/I&gt;&lt;/P&gt;&lt;P&gt;&lt;I&gt; &amp;lt;animal_extra&amp;gt;&lt;/I&gt;&lt;/P&gt;&lt;P&gt;&lt;I&gt; &amp;lt;animal_owner_name&amp;gt;Peter&amp;lt;/animal_owner_name&amp;gt;&lt;/I&gt;&lt;/P&gt;&lt;P&gt;&lt;I&gt; &amp;lt;animal_owner_lastname&amp;gt;Perez&amp;lt;/animal_owner_lastname&amp;gt;&lt;/I&gt;&lt;/P&gt;&lt;P&gt;&lt;I&gt; &amp;lt;/animal_extra&amp;gt;&lt;/I&gt;&lt;/P&gt;&lt;P&gt;&lt;I&gt; &amp;lt;animal_extra&amp;gt;&lt;/I&gt;&lt;/P&gt;&lt;P&gt;&lt;I&gt; &amp;lt;animal_owner_name&amp;gt;Karen&amp;lt;/animal_owner_name&amp;gt;&lt;/I&gt;&lt;/P&gt;&lt;P&gt;&lt;I&gt; &amp;lt;animal_owner_lastname&amp;gt;Arts&amp;lt;/animal_owner_lastname&amp;gt;&lt;/I&gt;&lt;/P&gt;&lt;P&gt;&lt;I&gt; &amp;lt;/animal_extra&amp;gt;&lt;/I&gt;&lt;/P&gt;&lt;P&gt;&lt;I&gt; &amp;lt;extra_details&amp;gt;&lt;/I&gt;&lt;/P&gt;&lt;P&gt;&lt;I&gt; &amp;lt;anyother_detail&amp;gt; RANDOM FACT &amp;lt;/anyother_detail&amp;gt;&lt;/I&gt;&lt;/P&gt;&lt;P&gt;&lt;I&gt; &amp;lt;/extra_details&amp;gt;&lt;/I&gt;&lt;/P&gt;&lt;P&gt;&lt;I&gt;&amp;lt;/animal&amp;gt;&lt;/I&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;For this case i need to generate 3 output files which will be : &lt;/P&gt;&lt;P&gt;1) animal.csv&lt;/P&gt;&lt;P&gt;2) animal_extra.csv&lt;/P&gt;&lt;P&gt;3) extra_details.csv &lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;The first one 1) will have only the common data shared for animal tag which will be &lt;B&gt;animal_id. &lt;/B&gt;Only one row&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The second one 2) will have the common data (&lt;B&gt;animal_id) &lt;/B&gt;plus the &lt;B&gt;animal_extra &lt;/B&gt;data, which in this case are 2 rows. As Example it should be: &lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;animal_extra.csv&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;animal_id; animal_owner_name; animal_owner_lastname&lt;/P&gt;&lt;P&gt;432; Peter; Perez&lt;/P&gt;&lt;P&gt;432; Karen ; Arts&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;And the third one should have the common data (&lt;B&gt;animal_id&lt;/B&gt;) plus the &lt;B&gt;extra_details&lt;/B&gt; data&lt;/P&gt;&lt;P&gt;I wonder how can I map this into multiple csv files using Talend Data Mapper.&lt;/P&gt;&lt;P&gt;Assume that i have the XSD schema for the XML input file. &lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks in advance!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Best Regards&lt;/P&gt;</description>
    <pubDate>Sat, 16 Nov 2024 01:30:47 GMT</pubDate>
    <dc:creator>robster1</dc:creator>
    <dc:date>2024-11-16T01:30:47Z</dc:date>
    <item>
      <title>TDM : Mapping 1 XML file into Multiple csv files</title>
      <link>https://community.qlik.com/t5/Talend-Studio/TDM-Mapping-1-XML-file-into-Multiple-csv-files/m-p/2290819#M64063</link>
      <description>&lt;P&gt;Hey guys,&lt;/P&gt;&lt;P&gt;I'm having a trouble with this : I have an xml file that i want to split into multiple csv according to the sublevels that the input file has. Example: &lt;/P&gt;&lt;P&gt;input.xml could look like his.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;I&gt;&amp;lt;animal&amp;gt;&lt;/I&gt;&lt;/P&gt;&lt;P&gt;&lt;I&gt; &amp;lt;animal_id&amp;gt;432&amp;lt;/animal_id&amp;gt;&lt;/I&gt;&lt;/P&gt;&lt;P&gt;&lt;I&gt; &amp;lt;animal_extra&amp;gt;&lt;/I&gt;&lt;/P&gt;&lt;P&gt;&lt;I&gt; &amp;lt;animal_owner_name&amp;gt;Peter&amp;lt;/animal_owner_name&amp;gt;&lt;/I&gt;&lt;/P&gt;&lt;P&gt;&lt;I&gt; &amp;lt;animal_owner_lastname&amp;gt;Perez&amp;lt;/animal_owner_lastname&amp;gt;&lt;/I&gt;&lt;/P&gt;&lt;P&gt;&lt;I&gt; &amp;lt;/animal_extra&amp;gt;&lt;/I&gt;&lt;/P&gt;&lt;P&gt;&lt;I&gt; &amp;lt;animal_extra&amp;gt;&lt;/I&gt;&lt;/P&gt;&lt;P&gt;&lt;I&gt; &amp;lt;animal_owner_name&amp;gt;Karen&amp;lt;/animal_owner_name&amp;gt;&lt;/I&gt;&lt;/P&gt;&lt;P&gt;&lt;I&gt; &amp;lt;animal_owner_lastname&amp;gt;Arts&amp;lt;/animal_owner_lastname&amp;gt;&lt;/I&gt;&lt;/P&gt;&lt;P&gt;&lt;I&gt; &amp;lt;/animal_extra&amp;gt;&lt;/I&gt;&lt;/P&gt;&lt;P&gt;&lt;I&gt; &amp;lt;extra_details&amp;gt;&lt;/I&gt;&lt;/P&gt;&lt;P&gt;&lt;I&gt; &amp;lt;anyother_detail&amp;gt; RANDOM FACT &amp;lt;/anyother_detail&amp;gt;&lt;/I&gt;&lt;/P&gt;&lt;P&gt;&lt;I&gt; &amp;lt;/extra_details&amp;gt;&lt;/I&gt;&lt;/P&gt;&lt;P&gt;&lt;I&gt;&amp;lt;/animal&amp;gt;&lt;/I&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;For this case i need to generate 3 output files which will be : &lt;/P&gt;&lt;P&gt;1) animal.csv&lt;/P&gt;&lt;P&gt;2) animal_extra.csv&lt;/P&gt;&lt;P&gt;3) extra_details.csv &lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;The first one 1) will have only the common data shared for animal tag which will be &lt;B&gt;animal_id. &lt;/B&gt;Only one row&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The second one 2) will have the common data (&lt;B&gt;animal_id) &lt;/B&gt;plus the &lt;B&gt;animal_extra &lt;/B&gt;data, which in this case are 2 rows. As Example it should be: &lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;animal_extra.csv&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;animal_id; animal_owner_name; animal_owner_lastname&lt;/P&gt;&lt;P&gt;432; Peter; Perez&lt;/P&gt;&lt;P&gt;432; Karen ; Arts&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;And the third one should have the common data (&lt;B&gt;animal_id&lt;/B&gt;) plus the &lt;B&gt;extra_details&lt;/B&gt; data&lt;/P&gt;&lt;P&gt;I wonder how can I map this into multiple csv files using Talend Data Mapper.&lt;/P&gt;&lt;P&gt;Assume that i have the XSD schema for the XML input file. &lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks in advance!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Best Regards&lt;/P&gt;</description>
      <pubDate>Sat, 16 Nov 2024 01:30:47 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/TDM-Mapping-1-XML-file-into-Multiple-csv-files/m-p/2290819#M64063</guid>
      <dc:creator>robster1</dc:creator>
      <dc:date>2024-11-16T01:30:47Z</dc:date>
    </item>
    <item>
      <title>Re: TDM : Mapping 1 XML file into Multiple csv files</title>
      <link>https://community.qlik.com/t5/Talend-Studio/TDM-Mapping-1-XML-file-into-Multiple-csv-files/m-p/2290820#M64064</link>
      <description>&lt;P&gt;*Edit 1 : Hi,As a solution I have been designing multiple structures for the csv outputs that I desire, and in the same way i've created the corresponding ThMaps (DM) for each of the structures. In my example I have 3 new structures (csv output) and 3 new data mappers.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;But, the case is that I have at least 67 levels (nested loop) in my original xml file. Hence i have to develop that many structures/DM components in my job . That's fine, because all the outputs should be different from each other.&amp;nbsp;The problem here is in the Integration job. Because i don't want to make ~67 "on subjob ok" components in foreach levels in my original xml file.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;So, the question is how can I make an 'iteration flow for each of the mappers. My goal is to just load the input once and then iterate over all the mappers that i have created and generate the corresponding outputfile.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Is that possible to do?&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks in adavance again.&lt;/P&gt;</description>
      <pubDate>Thu, 10 Sep 2020 00:31:55 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/TDM-Mapping-1-XML-file-into-Multiple-csv-files/m-p/2290820#M64064</guid>
      <dc:creator>robster1</dc:creator>
      <dc:date>2020-09-10T00:31:55Z</dc:date>
    </item>
  </channel>
</rss>

