<?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: Extract delimited varying values from field and map to xml in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/Extract-delimited-varying-values-from-field-and-map-to-xml/m-p/2203875#M4982</link>
    <description>Hi, &lt;BR /&gt;Did you check the output components &lt;A href="https://help.talend.com/search/all?query=tFileOutputXML&amp;amp;content-lang=en" target="_blank" rel="nofollow noopener noreferrer"&gt;TalendHelpCenter:tFileOutputXML&lt;/A&gt; and &lt;A href="https://help.talend.com/search/all?query=tAdvancedFileOutputXML&amp;amp;content-lang=en" target="_blank" rel="nofollow noopener noreferrer"&gt;tAdvancedFileOutputXML&lt;/A&gt;.&lt;BR /&gt;Best regards&lt;BR /&gt;Sabrina</description>
    <pubDate>Thu, 07 Nov 2013 02:49:59 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2013-11-07T02:49:59Z</dc:date>
    <item>
      <title>Extract delimited varying values from field and map to xml</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Extract-delimited-varying-values-from-field-and-map-to-xml/m-p/2203874#M4981</link>
      <description>I've got a csv-input and want to map this to a xml structure output. So far, so simple, so good... 
&lt;BR /&gt;The input (a csv) looks like this: 
&lt;BR /&gt;=================================================== 
&lt;BR /&gt;id;longtitle;shorttitle;keywords;description 
&lt;BR /&gt;12345;Longtitle 1;Shorttitle 2;dummy1 dummy2 dummy3;this is the first product 
&lt;BR /&gt;78901;Another product; other product;dummy8 dummy9;this is the second product 
&lt;BR /&gt;=================================================== 
&lt;BR /&gt;My problem is the "keyword" part. As this is "dynamic" i've got no idea how to extract these values from this field and map them to my xml. 
&lt;BR /&gt;The xml output should look like this: 
&lt;BR /&gt;=================================================== 
&lt;BR /&gt;&amp;lt;?xml version="1.0" encoding="UTF-8"?&amp;gt; 
&lt;BR /&gt;&amp;lt;root&amp;gt;&amp;lt;product&amp;gt;&amp;lt;id&amp;gt;12345&amp;lt;/id&amp;gt;&amp;lt;title&amp;gt;&amp;lt;type&amp;gt;long&amp;lt;/type&amp;gt;&amp;lt;text&amp;gt;Longtitle 1&amp;lt;/text&amp;gt;&amp;lt;/title&amp;gt;&amp;lt;title&amp;gt;&amp;lt;type&amp;gt;short&amp;lt;/type&amp;gt;&amp;lt;text&amp;gt;Shorttitle 2&amp;lt;/text&amp;gt;&amp;lt;/title&amp;gt;&amp;lt;keyword&amp;gt;&amp;lt;text&amp;gt;dummy1&amp;lt;/text&amp;gt;&amp;lt;/keyword&amp;gt;&amp;lt;keyword&amp;gt;&amp;lt;text&amp;gt;dummy2&amp;lt;/text&amp;gt;&amp;lt;/keyword&amp;gt;&amp;lt;keyword&amp;gt;&amp;lt;text&amp;gt;dummy3&amp;lt;/text&amp;gt;&amp;lt;/keyword&amp;gt;&amp;lt;description&amp;gt;this is the first product&amp;lt;/description&amp;gt;&amp;lt;/product&amp;gt;&amp;lt;/root&amp;gt; 
&lt;BR /&gt;&amp;lt;?xml version="1.0" encoding="UTF-8"?&amp;gt; 
&lt;BR /&gt;&amp;lt;root&amp;gt;&amp;lt;product&amp;gt;&amp;lt;id&amp;gt;78901&amp;lt;/id&amp;gt;&amp;lt;title&amp;gt;&amp;lt;type&amp;gt;long&amp;lt;/type&amp;gt;&amp;lt;text&amp;gt;Another product&amp;lt;/text&amp;gt;&amp;lt;/title&amp;gt;&amp;lt;title&amp;gt;&amp;lt;type&amp;gt;short&amp;lt;/type&amp;gt;&amp;lt;text&amp;gt; other product&amp;lt;/text&amp;gt;&amp;lt;/title&amp;gt;&amp;lt;keyword&amp;gt;&amp;lt;text&amp;gt;dummy8&amp;lt;/text&amp;gt;&amp;lt;/keyword&amp;gt;&amp;lt;keyword&amp;gt;&amp;lt;text&amp;gt;dummy9&amp;lt;/text&amp;gt;&amp;lt;/keyword&amp;gt;&amp;lt;description&amp;gt;this is the second product&amp;lt;/description&amp;gt;&amp;lt;/product&amp;gt;&amp;lt;/root&amp;gt; 
&lt;BR /&gt;=================================================== 
&lt;BR /&gt;Can anyone guide me to a sample or something else? Or provide a solution for this small sample? 
&lt;BR /&gt;Thx in advance 
&lt;BR /&gt; 
&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009MBfC.jpg"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/135282i5CADD6BC9A43CC7F/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009MBfC.jpg" alt="0683p000009MBfC.jpg" /&gt;&lt;/span&gt; 
&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009MBRv.jpg"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/154014i8D392A18E1C7B066/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009MBRv.jpg" alt="0683p000009MBRv.jpg" /&gt;&lt;/span&gt;</description>
      <pubDate>Wed, 06 Nov 2013 20:40:54 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Extract-delimited-varying-values-from-field-and-map-to-xml/m-p/2203874#M4981</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2013-11-06T20:40:54Z</dc:date>
    </item>
    <item>
      <title>Re: Extract delimited varying values from field and map to xml</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Extract-delimited-varying-values-from-field-and-map-to-xml/m-p/2203875#M4982</link>
      <description>Hi, &lt;BR /&gt;Did you check the output components &lt;A href="https://help.talend.com/search/all?query=tFileOutputXML&amp;amp;content-lang=en" target="_blank" rel="nofollow noopener noreferrer"&gt;TalendHelpCenter:tFileOutputXML&lt;/A&gt; and &lt;A href="https://help.talend.com/search/all?query=tAdvancedFileOutputXML&amp;amp;content-lang=en" target="_blank" rel="nofollow noopener noreferrer"&gt;tAdvancedFileOutputXML&lt;/A&gt;.&lt;BR /&gt;Best regards&lt;BR /&gt;Sabrina</description>
      <pubDate>Thu, 07 Nov 2013 02:49:59 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Extract-delimited-varying-values-from-field-and-map-to-xml/m-p/2203875#M4982</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2013-11-07T02:49:59Z</dc:date>
    </item>
    <item>
      <title>Re: Extract delimited varying values from field and map to xml</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Extract-delimited-varying-values-from-field-and-map-to-xml/m-p/2203876#M4983</link>
      <description>Hi Sabrina,
&lt;BR /&gt;thanks for your answer.
&lt;BR /&gt;No, i didn't checked this components (not really, just a little bit). The output should go (in real world) to a tRESTClient...
&lt;BR /&gt;As i'm relativ new to TOS, i have no clue how to extract the delimited values in the keywords field and pass them to my xml to look like that:
&lt;BR /&gt;&amp;lt;product&amp;gt;
&lt;BR /&gt;...
&lt;BR /&gt;&amp;lt;keyword&amp;gt;dummy1&amp;lt;/keyword&amp;gt;
&lt;BR /&gt;&amp;lt;keyword&amp;gt;dummy2&amp;lt;/keyword&amp;gt;
&lt;BR /&gt;...
&lt;BR /&gt;&amp;lt;/product&amp;gt; 
&lt;BR /&gt;My Problem is, that the number of values to be extracted from the keywords-field is varying. From a simple view it's like an own delimited "stream" to be extracted in several "rows" and pass every "row" as &amp;lt;keyword&amp;gt;xxxx&amp;lt;/keyword&amp;gt; to my xml-structure to get the result like mentioned above.
&lt;BR /&gt; 
&lt;BR /&gt;Hope i have clearly described where my problem is. Btw, how the solution would look like with the tFileOutputXml / tAdvancedFileOutputXML?
&lt;BR /&gt;Best regards
&lt;BR /&gt;Andreas</description>
      <pubDate>Thu, 07 Nov 2013 07:32:40 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Extract-delimited-varying-values-from-field-and-map-to-xml/m-p/2203876#M4983</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2013-11-07T07:32:40Z</dc:date>
    </item>
    <item>
      <title>Re: Extract delimited varying values from field and map to xml</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Extract-delimited-varying-values-from-field-and-map-to-xml/m-p/2203877#M4984</link>
      <description>OK, finally after some hours of try and error (and learning by doing) i figured out how to get the expected result. &lt;BR /&gt;tNormalize on the keywords field and use of a tXMLMap with proper setting of loop (on keyword) and aggregate (on id) will do the job in this sample.&lt;BR /&gt;I'll post the pictures showing the job as soon as i've solved some other problems and i've got time to.&lt;BR /&gt;Thx&lt;BR /&gt;-Andi</description>
      <pubDate>Thu, 07 Nov 2013 21:16:23 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Extract-delimited-varying-values-from-field-and-map-to-xml/m-p/2203877#M4984</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2013-11-07T21:16:23Z</dc:date>
    </item>
  </channel>
</rss>

