<?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: Create an XML with complex type ? in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/Create-an-XML-with-complex-type/m-p/2368212#M131503</link>
    <description>&lt;P&gt;In input of tXmlMap, we need to have an XML, no ?&lt;/P&gt;&lt;P&gt;From my side, I get datas from SQL and I want to get:&lt;/P&gt;&lt;P&gt;&amp;lt;values&amp;gt;&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;value keyName="City"&amp;gt;Rennes&amp;lt;/value&amp;gt;&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;value keyName="Code"&amp;gt;35000&amp;lt;/value&amp;gt;&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;value keyName="Country"&amp;gt;France&amp;lt;/value&amp;gt;&lt;BR /&gt;&amp;lt;/values&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;In Tree Configuration of&amp;nbsp;&lt;SPAN&gt;tAdvancedFileOutputXML&amp;nbsp;(as in attchment), I don't find how to do the link.&lt;/SPAN&gt;&lt;/P&gt;&lt;BR /&gt;&lt;A href="https://community.qlik.com/legacyfs/online/tlnd_dw_files/0683p000009LrYw"&gt;TreeConfiguration.PNG&lt;/A&gt;</description>
    <pubDate>Mon, 19 Feb 2018 14:22:00 GMT</pubDate>
    <dc:creator>Fernandez</dc:creator>
    <dc:date>2018-02-19T14:22:00Z</dc:date>
    <item>
      <title>Create an XML with complex type ?</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Create-an-XML-with-complex-type/m-p/2368210#M131501</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I want to create XML files from SQL data with using tAdvancedFileOutputXML.&lt;/P&gt;&lt;P&gt;How to do this when XML has complex type ?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;In attachment a&amp;nbsp;sample&amp;nbsp;of XML I have to&amp;nbsp;generate.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks for your feedback and your help !&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 19 Feb 2018 13:04:23 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Create-an-XML-with-complex-type/m-p/2368210#M131501</guid>
      <dc:creator>Fernandez</dc:creator>
      <dc:date>2018-02-19T13:04:23Z</dc:date>
    </item>
    <item>
      <title>Re: Create an XML with complex type ?</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Create-an-XML-with-complex-type/m-p/2368211#M131502</link>
      <description>&lt;P&gt;This doesn't look too complicated and can be done using a tXMLMap component quite easily. The documentation can be found here:&amp;nbsp;&lt;A href="https://help.talend.com/reader/MjIZDoU6r0vLbCpGh5GAcg/s8O15oJ~4D78_NSJIRZN8w" target="_blank" rel="nofollow noopener noreferrer"&gt;https://help.talend.com/reader/MjIZDoU6r0vLbCpGh5GAcg/s8O15oJ~4D78_NSJIRZN8w&lt;/A&gt;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;The same sort of rules apply to the&amp;nbsp;&lt;SPAN&gt;tAdvancedFileOutputXML component. Take a look here:&lt;/SPAN&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&lt;A href="https://help.talend.com/reader/WWQ40R_iTE5~~9VkUQrjgQ/i_YvOl2oUaVpW1UTnJao_g" target="_blank" rel="nofollow noopener noreferrer"&gt;https://help.talend.com/reader/WWQ40R_iTE5~~9VkUQrjgQ/i_YvOl2oUaVpW1UTnJao_g&lt;/A&gt;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;Essentially you will need to set a loop in your output. Your "value" element is looped so you will set the "loop" on "values". Your "keyName" attribute will need to be set as an attribute. Other than that, the explanations in the links should suffice.&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;If you are after building something which is a little more complicated (multiple loops, for example), you will either need to use the DataMapper (only in the Enterprise Edition) or make use of something like this....&lt;/P&gt; 
&lt;P&gt;&lt;A href="https://community.qlik.com/s/feed/0D73p000004klEcCAI#M87" target="_blank"&gt;https://community.talend.com/t5/How-Tos-and-Best-Practices/How-to-create-XML-with-multiple-loop/m-p/50045#M87&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 19 Feb 2018 13:15:27 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Create-an-XML-with-complex-type/m-p/2368211#M131502</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-02-19T13:15:27Z</dc:date>
    </item>
    <item>
      <title>Re: Create an XML with complex type ?</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Create-an-XML-with-complex-type/m-p/2368212#M131503</link>
      <description>&lt;P&gt;In input of tXmlMap, we need to have an XML, no ?&lt;/P&gt;&lt;P&gt;From my side, I get datas from SQL and I want to get:&lt;/P&gt;&lt;P&gt;&amp;lt;values&amp;gt;&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;value keyName="City"&amp;gt;Rennes&amp;lt;/value&amp;gt;&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;value keyName="Code"&amp;gt;35000&amp;lt;/value&amp;gt;&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;value keyName="Country"&amp;gt;France&amp;lt;/value&amp;gt;&lt;BR /&gt;&amp;lt;/values&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;In Tree Configuration of&amp;nbsp;&lt;SPAN&gt;tAdvancedFileOutputXML&amp;nbsp;(as in attchment), I don't find how to do the link.&lt;/SPAN&gt;&lt;/P&gt;&lt;BR /&gt;&lt;A href="https://community.qlik.com/legacyfs/online/tlnd_dw_files/0683p000009LrYw"&gt;TreeConfiguration.PNG&lt;/A&gt;</description>
      <pubDate>Mon, 19 Feb 2018 14:22:00 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Create-an-XML-with-complex-type/m-p/2368212#M131503</guid>
      <dc:creator>Fernandez</dc:creator>
      <dc:date>2018-02-19T14:22:00Z</dc:date>
    </item>
    <item>
      <title>Re: Create an XML with complex type ?</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Create-an-XML-with-complex-type/m-p/2368213#M131504</link>
      <description>&lt;P&gt;You need to change your SQL record of City, Code and Country to be delivered in 3 rows. So, for example, you could return two columns (value and type) and supply it like this....&lt;/P&gt; 
&lt;P&gt;&lt;STRONG&gt;Value - Type&lt;/STRONG&gt;&lt;BR /&gt;London - City&lt;BR /&gt;LON - Code&lt;BR /&gt;UK - Country&lt;BR /&gt;&lt;BR /&gt;Either do that with your SQL query or you can do it with a tNormalize component and following this post :&amp;nbsp;&lt;A href="https://community.qlik.com/s/feed/0D53p00007vCp9YCAS" target="_blank" rel="nofollow noopener noreferrer"&gt;https://community.talend.com/t5/Design-and-Development/How-to-split-one-row-into-multiples-rows/td-p/99958&lt;/A&gt;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 19 Feb 2018 14:37:38 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Create-an-XML-with-complex-type/m-p/2368213#M131504</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-02-19T14:37:38Z</dc:date>
    </item>
    <item>
      <title>Re: Create an XML with complex type ?</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Create-an-XML-with-complex-type/m-p/2368214#M131505</link>
      <description>&lt;P&gt;I'm feeling a little bit stupid but I didn't succeed &lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009MPcz.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/157233iD1A564EF62DE3BC2/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009MPcz.png" alt="0683p000009MPcz.png" /&gt;&lt;/span&gt;&lt;/P&gt; 
&lt;P&gt;I simplify my request.&lt;/P&gt; 
&lt;P&gt;Suppose I have only one index "City" with the value "London" in my database.&lt;/P&gt; 
&lt;P&gt;I get the couple &amp;lt;"City",London&amp;gt; from the component tMSSQLinput for example.&lt;/P&gt; 
&lt;P&gt;And with using tAdvancedFileOutputXML, I want to get :&lt;/P&gt; 
&lt;P&gt;&lt;STRONG&gt;&amp;lt;&lt;/STRONG&gt;value keyName="&lt;FONT color="#FF0000"&gt;City&lt;/FONT&gt;"&lt;STRONG&gt;&amp;gt;&lt;/STRONG&gt; &lt;FONT color="#FF0000"&gt;LONDON&lt;/FONT&gt; &lt;STRONG&gt;&amp;lt;&lt;/STRONG&gt;/value&lt;STRONG&gt;&amp;gt;&lt;/STRONG&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;I don't understand how to do as you can see in attachment...&lt;/P&gt;&lt;BR /&gt;&lt;A href="https://community.qlik.com/legacyfs/online/tlnd_dw_files/0683p000009Ls1c"&gt;Capture.PNG&lt;/A&gt;</description>
      <pubDate>Mon, 19 Feb 2018 20:38:41 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Create-an-XML-with-complex-type/m-p/2368214#M131505</guid>
      <dc:creator>Fernandez</dc:creator>
      <dc:date>2018-02-19T20:38:41Z</dc:date>
    </item>
    <item>
      <title>Re: Create an XML with complex type ?</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Create-an-XML-with-complex-type/m-p/2368215#M131506</link>
      <description>&lt;P&gt;Don't worry, this stuff can be a little counter-intuitive to start with. I believe ( from looking at your image) that you need to connect your CityValue column to your "Value" XML entity.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 19 Feb 2018 20:48:47 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Create-an-XML-with-complex-type/m-p/2368215#M131506</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-02-19T20:48:47Z</dc:date>
    </item>
    <item>
      <title>Re: Create an XML with complex type ?</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Create-an-XML-with-complex-type/m-p/2368216#M131507</link>
      <description>&lt;P&gt;Wonderful!&lt;/P&gt;&lt;P&gt;It's working.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Many, many thanks !&lt;/P&gt;</description>
      <pubDate>Mon, 19 Feb 2018 20:59:53 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Create-an-XML-with-complex-type/m-p/2368216#M131507</guid>
      <dc:creator>Fernandez</dc:creator>
      <dc:date>2018-02-19T20:59:53Z</dc:date>
    </item>
    <item>
      <title>Re: Create an XML with complex type ?</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Create-an-XML-with-complex-type/m-p/2368217#M131508</link>
      <description>&lt;P&gt;Glad you got it working. The more you use Talend, the more you will get used to it and it will become more intuitive &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 19 Feb 2018 21:01:37 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Create-an-XML-with-complex-type/m-p/2368217#M131508</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-02-19T21:01:37Z</dc:date>
    </item>
  </channel>
</rss>

