<?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 Re: [resolved] DeNormalized data to XML message in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/resolved-DeNormalized-data-to-XML-message/m-p/2265677#M45142</link>
    <description>Hello &amp;nbsp;&lt;BR /&gt;In my scenario, &amp;nbsp;you just need to use a tWriteXMLFields component replace of tLogRow, set id column as group element, it will generate a xml message for each input data.</description>
    <pubDate>Fri, 23 Dec 2016 10:17:09 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2016-12-23T10:17:09Z</dc:date>
    <item>
      <title>[resolved] DeNormalized data to XML message</title>
      <link>https://community.qlik.com/t5/Talend-Studio/resolved-DeNormalized-data-to-XML-message/m-p/2265674#M45139</link>
      <description>Hello,
&lt;BR /&gt;I am having issue to create xml message (to deliver to Queue) with denormalized data (salary details will be loop). i am able to create full xml file but i want to create a message for each employee id. can you please help ?
&lt;BR /&gt;Input Data:&amp;nbsp;
&lt;BR /&gt;employee_id|month|salary
&lt;BR /&gt;1|jan;feb;mar|1000;2000;3000
&lt;BR /&gt;2|jan;feb|5000;6000
&lt;BR /&gt;Expected Output:
&lt;BR /&gt;xml msg 1:
&lt;BR /&gt;&amp;lt;org&amp;gt;
&lt;BR /&gt;&amp;lt;employee details&amp;gt;
&lt;BR /&gt;&amp;lt;employee_id&amp;gt;1&amp;lt;/employee_id&amp;gt;
&lt;BR /&gt;&amp;lt;/employee details&amp;gt;
&lt;BR /&gt;&amp;nbsp;&amp;nbsp;
&lt;BR /&gt;&amp;nbsp; &amp;lt;salary details&amp;gt;
&lt;BR /&gt;&amp;nbsp; &amp;lt;month&amp;gt;jan&amp;lt;/month&amp;gt;
&lt;BR /&gt;&amp;nbsp; &amp;lt;salary&amp;gt;1000&amp;lt;/salary&amp;gt;
&lt;BR /&gt;&amp;nbsp; &amp;lt;/salary details&amp;gt;
&lt;BR /&gt;&amp;nbsp; &amp;lt;salary details&amp;gt;
&lt;BR /&gt;&amp;nbsp; &amp;lt;month&amp;gt;feb&amp;lt;/month&amp;gt;
&lt;BR /&gt;&amp;nbsp; &amp;lt;salary&amp;gt;2000&amp;lt;/salary&amp;gt;
&lt;BR /&gt;&amp;nbsp; &amp;lt;/salary details&amp;gt;
&lt;BR /&gt;&amp;nbsp;&amp;nbsp;
&lt;BR /&gt;&amp;nbsp; &amp;lt;salary details&amp;gt;
&lt;BR /&gt;&amp;nbsp; &amp;lt;month&amp;gt;mar&amp;lt;/month&amp;gt;
&lt;BR /&gt;&amp;nbsp; &amp;lt;salary&amp;gt;3000&amp;lt;/salary&amp;gt;
&lt;BR /&gt;&amp;nbsp; &amp;lt;/salary details&amp;gt;
&lt;BR /&gt;&amp;lt;/org&amp;gt;
&lt;BR /&gt;
&lt;BR /&gt;xml msg 2:
&lt;BR /&gt;&amp;lt;org&amp;gt;
&lt;BR /&gt;&amp;lt;employee details&amp;gt;
&lt;BR /&gt;&amp;lt;employee_id&amp;gt;2&amp;lt;/employee_id&amp;gt;
&lt;BR /&gt;&amp;lt;/employee details&amp;gt;
&lt;BR /&gt;&amp;nbsp;&amp;nbsp;
&lt;BR /&gt;&amp;nbsp; &amp;lt;salary details&amp;gt;
&lt;BR /&gt;&amp;nbsp; &amp;lt;month&amp;gt;jan&amp;lt;/month&amp;gt;
&lt;BR /&gt;&amp;nbsp; &amp;lt;salary&amp;gt;5000&amp;lt;/salary&amp;gt;
&lt;BR /&gt;&amp;nbsp; &amp;lt;/salary details&amp;gt;
&lt;BR /&gt;&amp;nbsp; &amp;lt;salary details&amp;gt;
&lt;BR /&gt;&amp;nbsp; &amp;lt;month&amp;gt;feb&amp;lt;/month&amp;gt;
&lt;BR /&gt;&amp;nbsp; &amp;lt;salary&amp;gt;6000&amp;lt;/salary&amp;gt;
&lt;BR /&gt;&amp;nbsp; &amp;lt;/salary details&amp;gt;
&lt;BR /&gt;&amp;lt;/org&amp;gt;</description>
      <pubDate>Tue, 20 Dec 2016 16:55:20 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/resolved-DeNormalized-data-to-XML-message/m-p/2265674#M45139</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-12-20T16:55:20Z</dc:date>
    </item>
    <item>
      <title>Re: [resolved] DeNormalized data to XML message</title>
      <link>https://community.qlik.com/t5/Talend-Studio/resolved-DeNormalized-data-to-XML-message/m-p/2265675#M45140</link>
      <description>Hello&amp;nbsp; 
&lt;BR /&gt;You need to iterate each row of input data and design the jobs as below, for example 
&lt;BR /&gt;main job: 
&lt;BR /&gt;tfileinputDelimited--main--tFlowToIterate--iterate--tRunJOb 
&lt;BR /&gt;tRunjob: call the child job, and pass current data flow to child job, refers to this 
&lt;A href="https://help.talend.com/pages/viewpage.action?pageId=190513193" target="_blank" rel="nofollow noopener noreferrer"&gt;article &lt;/A&gt;about how pass value from main job to child job. 
&lt;BR /&gt;child job: 
&lt;BR /&gt; 
&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009MCiB.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/150304iF214927B407B0DD1/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009MCiB.png" alt="0683p000009MCiB.png" /&gt;&lt;/span&gt; 
&lt;BR /&gt;In child job, normalize the month and salary separately, cache the temporary result in memory, read them back from memory and do a join to merge the columns, the output will be: 
&lt;BR /&gt; 
&lt;PRE&gt;Starting job test3 at 15:50 21/12/2016.&lt;BR /&gt; connecting to socket on port 3464&lt;BR /&gt; connected&lt;BR /&gt;.-----------+--+-----+------.&lt;BR /&gt;|         tLogRow_1         |&lt;BR /&gt;|=----------+--+-----+-----=|&lt;BR /&gt;|sequence_id|id|month|salary|&lt;BR /&gt;|=----------+--+-----+-----=|&lt;BR /&gt;|1          |1 |jan  |1000  |&lt;BR /&gt;|2          |1 |feb  |2000  |&lt;BR /&gt;|3          |1 |mar  |3000  |&lt;BR /&gt;'-----------+--+-----+------'&lt;BR /&gt; disconnected&lt;BR /&gt;Job test3 ended at 15:50 21/12/2016. &lt;/PRE&gt; 
&lt;BR /&gt;For more details, please see&amp;nbsp; 
&lt;BR /&gt; 
&lt;A href="https://community.talend.com/legacyfs/online/membersTempo/674/mainJob.zip.zip" target="_blank"&gt;mainJob.zip&lt;/A&gt; 
&lt;BR /&gt;Regards 
&lt;BR /&gt;Shong</description>
      <pubDate>Wed, 21 Dec 2016 07:49:45 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/resolved-DeNormalized-data-to-XML-message/m-p/2265675#M45140</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-12-21T07:49:45Z</dc:date>
    </item>
    <item>
      <title>Re: [resolved] DeNormalized data to XML message</title>
      <link>https://community.qlik.com/t5/Talend-Studio/resolved-DeNormalized-data-to-XML-message/m-p/2265676#M45141</link>
      <description>Shong, Thanks for the quick response. The real difficult part i have is to create the message with data loop (salary_details) after normalization. if i use twritexmlfield component, each message is split into multiple records (each record for salary details). 
&lt;BR /&gt;I want create 1 message for each input denormalize record. This message should contain the looping of salary details (1 output record for each of &amp;nbsp;input record). 
&lt;BR /&gt;I am able to create xml file using tadvancedoutputxml component &amp;nbsp;then read the file using &amp;lt;/org&amp;gt; as line terminator and remove unwanted text but this may not be ideal solution when we have high volume. 
&lt;BR /&gt;any help is greatly appreciated.</description>
      <pubDate>Wed, 21 Dec 2016 14:48:07 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/resolved-DeNormalized-data-to-XML-message/m-p/2265676#M45141</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-12-21T14:48:07Z</dc:date>
    </item>
    <item>
      <title>Re: [resolved] DeNormalized data to XML message</title>
      <link>https://community.qlik.com/t5/Talend-Studio/resolved-DeNormalized-data-to-XML-message/m-p/2265677#M45142</link>
      <description>Hello &amp;nbsp;&lt;BR /&gt;In my scenario, &amp;nbsp;you just need to use a tWriteXMLFields component replace of tLogRow, set id column as group element, it will generate a xml message for each input data.</description>
      <pubDate>Fri, 23 Dec 2016 10:17:09 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/resolved-DeNormalized-data-to-XML-message/m-p/2265677#M45142</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-12-23T10:17:09Z</dc:date>
    </item>
    <item>
      <title>Re: [resolved] DeNormalized data to XML message</title>
      <link>https://community.qlik.com/t5/Talend-Studio/resolved-DeNormalized-data-to-XML-message/m-p/2265678#M45143</link>
      <description>Shang, it did't work. in my example, i have 2 denormalized records (5 after normalization). I am expecting 2 output records from tWriteXMlFields but i am getting 5 records. Below is my xml map (can't setup group element without loop element). can you please help ? 
&lt;BR /&gt; 
&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009MCiG.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/135735i2D4C2E3448657A46/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009MCiG.png" alt="0683p000009MCiG.png" /&gt;&lt;/span&gt;</description>
      <pubDate>Fri, 23 Dec 2016 17:52:30 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/resolved-DeNormalized-data-to-XML-message/m-p/2265678#M45143</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-12-23T17:52:30Z</dc:date>
    </item>
    <item>
      <title>Re: [resolved] DeNormalized data to XML message</title>
      <link>https://community.qlik.com/t5/Talend-Studio/resolved-DeNormalized-data-to-XML-message/m-p/2265679#M45144</link>
      <description>Hi&amp;nbsp; 
&lt;BR /&gt;Have you imported my job and tested? It is able to generate only 2 XML messages. 
&lt;BR /&gt; 
&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009MCiL.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/153180i82CC034C067AFD1B/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009MCiL.png" alt="0683p000009MCiL.png" /&gt;&lt;/span&gt; 
&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009MCSe.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/128648iD739BB8B49F6DF25/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009MCSe.png" alt="0683p000009MCSe.png" /&gt;&lt;/span&gt; 
&lt;BR /&gt;Regards 
&lt;BR /&gt;Shong</description>
      <pubDate>Mon, 26 Dec 2016 03:02:25 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/resolved-DeNormalized-data-to-XML-message/m-p/2265679#M45144</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-12-26T03:02:25Z</dc:date>
    </item>
    <item>
      <title>Re: [resolved] DeNormalized data to XML message</title>
      <link>https://community.qlik.com/t5/Talend-Studio/resolved-DeNormalized-data-to-XML-message/m-p/2265680#M45145</link>
      <description>Thanks Shong. it's working now. appreciate your help.</description>
      <pubDate>Tue, 27 Dec 2016 13:36:07 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/resolved-DeNormalized-data-to-XML-message/m-p/2265680#M45145</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-12-27T13:36:07Z</dc:date>
    </item>
    <item>
      <title>Re: [resolved] DeNormalized data to XML message</title>
      <link>https://community.qlik.com/t5/Talend-Studio/resolved-DeNormalized-data-to-XML-message/m-p/2265681#M45146</link>
      <description>Great, thanks for your feedback.</description>
      <pubDate>Wed, 28 Dec 2016 04:53:00 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/resolved-DeNormalized-data-to-XML-message/m-p/2265681#M45146</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-12-28T04:53:00Z</dc:date>
    </item>
  </channel>
</rss>

