<?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: how to use tXMLMap with elements with variable number of occurrency in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/how-to-use-tXMLMap-with-elements-with-variable-number-of/m-p/2342411#M110279</link>
    <description>Hi 
&lt;BR /&gt;tXMLMap allows you to create multiple loop elements, in your case, outcome and income are two loop elements, ownerSurname and ownerName are aggregate elements. see my screenshot. 
&lt;BR /&gt; 
&lt;BR /&gt;Shong 
&lt;BR /&gt; 
&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009MDp4.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/130859i04F0B39D66742E1E/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009MDp4.png" alt="0683p000009MDp4.png" /&gt;&lt;/span&gt;</description>
    <pubDate>Tue, 19 Feb 2013 05:02:14 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2013-02-19T05:02:14Z</dc:date>
    <item>
      <title>how to use tXMLMap with elements with variable number of occurrency</title>
      <link>https://community.qlik.com/t5/Talend-Studio/how-to-use-tXMLMap-with-elements-with-variable-number-of/m-p/2342410#M110278</link>
      <description>Hello, I am learning how to use the tXMLMap component and as an exercise I am trying to figure out a way to use tXMLMap to create a job that can read through an XML file and produce an exact replica of the same file. 
&lt;BR /&gt;The peculiar thing of this XML file is that within an element there are two compulsory elements (name and surname), an optional element (credit card number), and a list of transactions (outcomes and incomes) that can have any number of occurrencies. 
&lt;BR /&gt;The schema and a sample xml file compliant to the schema follow: 
&lt;BR /&gt;-------------------- BankAccount.xsd -------------------------------------------- 
&lt;BR /&gt;&amp;lt;?xml version="1.0" encoding="UTF-8"?&amp;gt; 
&lt;BR /&gt;&amp;lt;xs:schema xmlns:xs=" 
&lt;A href="http://www.w3.org/2001/XMLSchema" target="_blank" rel="nofollow noopener noreferrer"&gt;http://www.w3.org/2001/XMLSchema&lt;/A&gt;"&amp;gt; 
&lt;BR /&gt; &amp;lt;xs:element name="collection"&amp;gt; 
&lt;BR /&gt; &amp;lt;xs:complexType&amp;gt; 
&lt;BR /&gt; &amp;lt;xs:sequence&amp;gt; 
&lt;BR /&gt; &amp;lt;xs:element name="account"&amp;gt; 
&lt;BR /&gt; &amp;lt;xs:complexType&amp;gt; 
&lt;BR /&gt; &amp;lt;xs:sequence&amp;gt; 
&lt;BR /&gt; &amp;lt;xs:element name="ownerSurname" type="xs:string" minOccurs="1" maxOccurs="1"/&amp;gt; 
&lt;BR /&gt; &amp;lt;xs:element name="ownerName" type="xs:string" minOccurs="1" maxOccurs="1"/&amp;gt; 
&lt;BR /&gt; &amp;lt;xs:element name="creditCard" type="xs:string" minOccurs="0" maxOccurs="1"/&amp;gt; 
&lt;BR /&gt; &amp;lt;xs:element name="outcome" type="xs:decimal" minOccurs="0" maxOccurs="unbounded"/&amp;gt; 
&lt;BR /&gt; &amp;lt;xs:element name="income" type="xs:decimal" minOccurs="0" maxOccurs="unbounded"/&amp;gt; 
&lt;BR /&gt; &amp;lt;/xs:sequence&amp;gt; 
&lt;BR /&gt; &amp;lt;/xs:complexType&amp;gt; 
&lt;BR /&gt; &amp;lt;/xs:element&amp;gt; 
&lt;BR /&gt; &amp;lt;/xs:sequence&amp;gt; 
&lt;BR /&gt; &amp;lt;/xs:complexType&amp;gt; 
&lt;BR /&gt; &amp;lt;/xs:element&amp;gt; 
&lt;BR /&gt;&amp;lt;/xs:schema&amp;gt; 
&lt;BR /&gt; 
&lt;BR /&gt;-------------------------------------accounts.xml ----------------------------------------------- 
&lt;BR /&gt;&amp;lt;collection&amp;gt; 
&lt;BR /&gt; &amp;lt;account&amp;gt; 
&lt;BR /&gt; &amp;lt;ownerSurname&amp;gt;Smith&amp;lt;/ownerSurname&amp;gt; 
&lt;BR /&gt; &amp;lt;ownerName&amp;gt;John&amp;lt;/ownerName&amp;gt; 
&lt;BR /&gt; &amp;lt;creditCard&amp;gt;xxxx-xxxx-xxxx-xxxx&amp;lt;/creditCard&amp;gt; 
&lt;BR /&gt; &amp;lt;outcome&amp;gt;120.0&amp;lt;/outcome&amp;gt; 
&lt;BR /&gt; &amp;lt;outcome&amp;gt;135.0&amp;lt;/outcome&amp;gt; 
&lt;BR /&gt; &amp;lt;outcome&amp;gt;20.0&amp;lt;/outcome&amp;gt; 
&lt;BR /&gt; &amp;lt;income&amp;gt;1120.0&amp;lt;/income&amp;gt; 
&lt;BR /&gt; &amp;lt;income&amp;gt;35.0&amp;lt;/income&amp;gt; 
&lt;BR /&gt; &amp;lt;/account&amp;gt; 
&lt;BR /&gt; &amp;lt;account&amp;gt; 
&lt;BR /&gt; &amp;lt;ownerSurname&amp;gt;Brown&amp;lt;/ownerSurname&amp;gt; 
&lt;BR /&gt; &amp;lt;ownerName&amp;gt;James&amp;lt;/ownerName&amp;gt; 
&lt;BR /&gt; &amp;lt;outcome&amp;gt;1120.99&amp;lt;/outcome&amp;gt; 
&lt;BR /&gt; &amp;lt;income&amp;gt;11.01&amp;lt;/income&amp;gt; 
&lt;BR /&gt; &amp;lt;income&amp;gt;3.01&amp;lt;/income&amp;gt; 
&lt;BR /&gt; &amp;lt;/account&amp;gt; 
&lt;BR /&gt; &amp;lt;account&amp;gt; 
&lt;BR /&gt; &amp;lt;ownerSurname&amp;gt;White&amp;lt;/ownerSurname&amp;gt; 
&lt;BR /&gt; &amp;lt;ownerName&amp;gt;James&amp;lt;/ownerName&amp;gt; 
&lt;BR /&gt; &amp;lt;outcome&amp;gt;1&amp;lt;/outcome&amp;gt; 
&lt;BR /&gt; &amp;lt;outcome&amp;gt;2&amp;lt;/outcome&amp;gt; 
&lt;BR /&gt; &amp;lt;income&amp;gt;3&amp;lt;/income&amp;gt; 
&lt;BR /&gt; &amp;lt;/account&amp;gt; 
&lt;BR /&gt;&amp;lt;/collection&amp;gt; 
&lt;BR /&gt;------------------------------------------------------------------------------------------------- 
&lt;BR /&gt;No matter the fact I read through user guide and components guide, I can't achieve this result. I think it's not rocket science and I really hope I am just missing something. 
&lt;BR /&gt;Can you provide me with a link to any example, or the actual solution? 
&lt;BR /&gt;If otherwise it's not possible at all, please tell me so.</description>
      <pubDate>Mon, 18 Feb 2013 12:07:55 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/how-to-use-tXMLMap-with-elements-with-variable-number-of/m-p/2342410#M110278</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2013-02-18T12:07:55Z</dc:date>
    </item>
    <item>
      <title>Re: how to use tXMLMap with elements with variable number of occurrency</title>
      <link>https://community.qlik.com/t5/Talend-Studio/how-to-use-tXMLMap-with-elements-with-variable-number-of/m-p/2342411#M110279</link>
      <description>Hi 
&lt;BR /&gt;tXMLMap allows you to create multiple loop elements, in your case, outcome and income are two loop elements, ownerSurname and ownerName are aggregate elements. see my screenshot. 
&lt;BR /&gt; 
&lt;BR /&gt;Shong 
&lt;BR /&gt; 
&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009MDp4.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/130859i04F0B39D66742E1E/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009MDp4.png" alt="0683p000009MDp4.png" /&gt;&lt;/span&gt;</description>
      <pubDate>Tue, 19 Feb 2013 05:02:14 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/how-to-use-tXMLMap-with-elements-with-variable-number-of/m-p/2342411#M110279</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2013-02-19T05:02:14Z</dc:date>
    </item>
    <item>
      <title>Re: how to use tXMLMap with elements with variable number of occurrency</title>
      <link>https://community.qlik.com/t5/Talend-Studio/how-to-use-tXMLMap-with-elements-with-variable-number-of/m-p/2342412#M110280</link>
      <description>Hi Shong, thanks for your reply. 
&lt;BR /&gt;As you can see from the images I attached, in my contextual menu there's not an option to "aggregate". 
&lt;BR /&gt;Please notice that I tried both by checking the "All in one" field to true and false. 
&lt;BR /&gt;Is there something I am missing?? 
&lt;BR /&gt;(I am using Talend Open Studio for ESB - Version: 5.2.1 on Windows 7 Professional - SP1) 
&lt;BR /&gt;Thanks in advance, 
&lt;BR /&gt;Eduardo 
&lt;BR /&gt; 
&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009MDrd.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/128142i69961E61427A1639/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009MDrd.png" alt="0683p000009MDrd.png" /&gt;&lt;/span&gt; 
&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009MDri.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/144578i5F3579DEB3ADCCA8/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009MDri.png" alt="0683p000009MDri.png" /&gt;&lt;/span&gt;</description>
      <pubDate>Tue, 19 Feb 2013 09:38:33 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/how-to-use-tXMLMap-with-elements-with-variable-number-of/m-p/2342412#M110280</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2013-02-19T09:38:33Z</dc:date>
    </item>
    <item>
      <title>Re: how to use tXMLMap with elements with variable number of occurrency</title>
      <link>https://community.qlik.com/t5/Talend-Studio/how-to-use-tXMLMap-with-elements-with-variable-number-of/m-p/2342413#M110281</link>
      <description>Hi
&lt;BR /&gt;The 'All in one' option does not work with "aggregate element", make sure 'all in one' is false!
&lt;BR /&gt;Shong</description>
      <pubDate>Wed, 20 Feb 2013 03:36:12 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/how-to-use-tXMLMap-with-elements-with-variable-number-of/m-p/2342413#M110281</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2013-02-20T03:36:12Z</dc:date>
    </item>
    <item>
      <title>Re: how to use tXMLMap with elements with variable number of occurrency</title>
      <link>https://community.qlik.com/t5/Talend-Studio/how-to-use-tXMLMap-with-elements-with-variable-number-of/m-p/2342414#M110282</link>
      <description>Hi Shong, thanks for the reply. 
&lt;BR /&gt;I found that the only way for me to use aggregate elements is to have one only loop in the incoming flow. 
&lt;BR /&gt;This is the resulting XML: 
&lt;BR /&gt;&amp;lt;?xml version="1.0" encoding="ISO-8859-15"?&amp;gt; 
&lt;BR /&gt;&amp;lt;collection&amp;gt; 
&lt;BR /&gt; &amp;lt;account&amp;gt; 
&lt;BR /&gt; &amp;lt;ownerSurname&amp;gt;Smith&amp;lt;/ownerSurname&amp;gt; 
&lt;BR /&gt; &amp;lt;ownerName&amp;gt;John&amp;lt;/ownerName&amp;gt; 
&lt;BR /&gt; &amp;lt;creditCard&amp;gt;xxxx-xxxx-xxxx-xxxx&amp;lt;/creditCard&amp;gt; 
&lt;BR /&gt; &amp;lt;outcome&amp;gt;120.0&amp;lt;/outcome&amp;gt; 
&lt;BR /&gt; &amp;lt;outcome&amp;gt;135.0&amp;lt;/outcome&amp;gt; 
&lt;BR /&gt; &amp;lt;outcome&amp;gt;20.0&amp;lt;/outcome&amp;gt; 
&lt;BR /&gt; &amp;lt;/account&amp;gt; 
&lt;BR /&gt;&amp;lt;/collection&amp;gt; 
&lt;BR /&gt;&amp;lt;?xml version="1.0" encoding="ISO-8859-15"?&amp;gt; 
&lt;BR /&gt;&amp;lt;collection&amp;gt; 
&lt;BR /&gt; &amp;lt;account&amp;gt; 
&lt;BR /&gt; &amp;lt;ownerSurname&amp;gt;Brown&amp;lt;/ownerSurname&amp;gt; 
&lt;BR /&gt; &amp;lt;ownerName&amp;gt;James&amp;lt;/ownerName&amp;gt; 
&lt;BR /&gt; &amp;lt;creditCard/&amp;gt; 
&lt;BR /&gt; &amp;lt;outcome&amp;gt;1120.99&amp;lt;/outcome&amp;gt; 
&lt;BR /&gt; &amp;lt;/account&amp;gt; 
&lt;BR /&gt;&amp;lt;/collection&amp;gt; 
&lt;BR /&gt;&amp;lt;?xml version="1.0" encoding="ISO-8859-15"?&amp;gt; 
&lt;BR /&gt;&amp;lt;collection&amp;gt; 
&lt;BR /&gt; &amp;lt;account&amp;gt; 
&lt;BR /&gt; &amp;lt;ownerSurname&amp;gt;White&amp;lt;/ownerSurname&amp;gt; 
&lt;BR /&gt; &amp;lt;ownerName&amp;gt;James&amp;lt;/ownerName&amp;gt; 
&lt;BR /&gt; &amp;lt;creditCard/&amp;gt; 
&lt;BR /&gt; &amp;lt;outcome&amp;gt;1&amp;lt;/outcome&amp;gt; 
&lt;BR /&gt; &amp;lt;outcome&amp;gt;2&amp;lt;/outcome&amp;gt; 
&lt;BR /&gt; &amp;lt;/account&amp;gt; 
&lt;BR /&gt;&amp;lt;/collection&amp;gt; 
&lt;BR /&gt;&amp;lt;?xml version="1.0" encoding="ISO-8859-15"?&amp;gt; 
&lt;BR /&gt;&amp;lt;collection&amp;gt; 
&lt;BR /&gt; &amp;lt;account&amp;gt; 
&lt;BR /&gt; &amp;lt;ownerSurname&amp;gt;Smith&amp;lt;/ownerSurname&amp;gt; 
&lt;BR /&gt; &amp;lt;ownerName&amp;gt;John&amp;lt;/ownerName&amp;gt; 
&lt;BR /&gt; &amp;lt;creditCard&amp;gt;xxxx-xxxx-xxxx-xxxx&amp;lt;/creditCard&amp;gt; 
&lt;BR /&gt; &amp;lt;income&amp;gt;1120.0&amp;lt;/income&amp;gt; 
&lt;BR /&gt; &amp;lt;income&amp;gt;35.0&amp;lt;/income&amp;gt; 
&lt;BR /&gt; &amp;lt;/account&amp;gt; 
&lt;BR /&gt;&amp;lt;/collection&amp;gt; 
&lt;BR /&gt;&amp;lt;?xml version="1.0" encoding="ISO-8859-15"?&amp;gt; 
&lt;BR /&gt;&amp;lt;collection&amp;gt; 
&lt;BR /&gt; &amp;lt;account&amp;gt; 
&lt;BR /&gt; &amp;lt;ownerSurname&amp;gt;Brown&amp;lt;/ownerSurname&amp;gt; 
&lt;BR /&gt; &amp;lt;ownerName&amp;gt;James&amp;lt;/ownerName&amp;gt; 
&lt;BR /&gt; &amp;lt;creditCard/&amp;gt; 
&lt;BR /&gt; &amp;lt;income&amp;gt;11.01&amp;lt;/income&amp;gt; 
&lt;BR /&gt; &amp;lt;income&amp;gt;3.01&amp;lt;/income&amp;gt; 
&lt;BR /&gt; &amp;lt;/account&amp;gt; 
&lt;BR /&gt;&amp;lt;/collection&amp;gt; 
&lt;BR /&gt;&amp;lt;?xml version="1.0" encoding="ISO-8859-15"?&amp;gt; 
&lt;BR /&gt;&amp;lt;collection&amp;gt; 
&lt;BR /&gt; &amp;lt;account&amp;gt; 
&lt;BR /&gt; &amp;lt;ownerSurname&amp;gt;White&amp;lt;/ownerSurname&amp;gt; 
&lt;BR /&gt; &amp;lt;ownerName&amp;gt;James&amp;lt;/ownerName&amp;gt; 
&lt;BR /&gt; &amp;lt;creditCard/&amp;gt; 
&lt;BR /&gt; &amp;lt;income&amp;gt;3&amp;lt;/income&amp;gt; 
&lt;BR /&gt; &amp;lt;/account&amp;gt; 
&lt;BR /&gt;&amp;lt;/collection&amp;gt; 
&lt;BR /&gt; 
&lt;BR /&gt;Can you tell me if I am doing something wrong on the incoming bit? 
&lt;BR /&gt; 
&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009MDrn.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/130633i35AD7DDA64DACBEB/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009MDrn.png" alt="0683p000009MDrn.png" /&gt;&lt;/span&gt; 
&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009MDbq.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/150666iA430949CD1FC08CA/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009MDbq.png" alt="0683p000009MDbq.png" /&gt;&lt;/span&gt;</description>
      <pubDate>Wed, 20 Feb 2013 09:34:20 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/how-to-use-tXMLMap-with-elements-with-variable-number-of/m-p/2342414#M110282</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2013-02-20T09:34:20Z</dc:date>
    </item>
    <item>
      <title>Re: how to use tXMLMap with elements with variable number of occurrency</title>
      <link>https://community.qlik.com/t5/Talend-Studio/how-to-use-tXMLMap-with-elements-with-variable-number-of/m-p/2342415#M110283</link>
      <description>Hi 
&lt;BR /&gt;Before tXMLMap, use a tSortRow to sort the incoming rows by ownerSurname and ownerName. For testing, I am able to generate a result as below:
&lt;BR /&gt;&amp;lt;?xml version="1.0" encoding="ISO-8859-15"?&amp;gt;
&lt;BR /&gt;&amp;lt;root&amp;gt;
&lt;BR /&gt; &amp;lt;person&amp;gt;
&lt;BR /&gt; &amp;lt;name&amp;gt;elise&amp;lt;/name&amp;gt;
&lt;BR /&gt; &amp;lt;incoming&amp;gt;54&amp;lt;/incoming&amp;gt;
&lt;BR /&gt; &amp;lt;outcoming&amp;gt;88&amp;lt;/outcoming&amp;gt;
&lt;BR /&gt; &amp;lt;/person&amp;gt;
&lt;BR /&gt;&amp;lt;/root&amp;gt;
&lt;BR /&gt;&amp;lt;?xml version="1.0" encoding="ISO-8859-15"?&amp;gt;
&lt;BR /&gt;&amp;lt;root&amp;gt;
&lt;BR /&gt; &amp;lt;person&amp;gt;
&lt;BR /&gt; &amp;lt;name&amp;gt;sabrina&amp;lt;/name&amp;gt;
&lt;BR /&gt; &amp;lt;incoming&amp;gt;67&amp;lt;/incoming&amp;gt;
&lt;BR /&gt; &amp;lt;outcoming&amp;gt;25&amp;lt;/outcoming&amp;gt;
&lt;BR /&gt; &amp;lt;incoming&amp;gt;47&amp;lt;/incoming&amp;gt;
&lt;BR /&gt; &amp;lt;outcoming&amp;gt;41&amp;lt;/outcoming&amp;gt;
&lt;BR /&gt; &amp;lt;/person&amp;gt;
&lt;BR /&gt;&amp;lt;/root&amp;gt;
&lt;BR /&gt;&amp;lt;?xml version="1.0" encoding="ISO-8859-15"?&amp;gt;
&lt;BR /&gt;&amp;lt;root&amp;gt;
&lt;BR /&gt; &amp;lt;person&amp;gt;
&lt;BR /&gt; &amp;lt;name&amp;gt;shong&amp;lt;/name&amp;gt;
&lt;BR /&gt; &amp;lt;incoming&amp;gt;74&amp;lt;/incoming&amp;gt;
&lt;BR /&gt; &amp;lt;outcoming&amp;gt;60&amp;lt;/outcoming&amp;gt;
&lt;BR /&gt; &amp;lt;incoming&amp;gt;20&amp;lt;/incoming&amp;gt;
&lt;BR /&gt; &amp;lt;outcoming&amp;gt;18&amp;lt;/outcoming&amp;gt;
&lt;BR /&gt; &amp;lt;/person&amp;gt;
&lt;BR /&gt;&amp;lt;/root&amp;gt;
&lt;BR /&gt;Shong</description>
      <pubDate>Thu, 21 Feb 2013 03:30:35 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/how-to-use-tXMLMap-with-elements-with-variable-number-of/m-p/2342415#M110283</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2013-02-21T03:30:35Z</dc:date>
    </item>
    <item>
      <title>Re: how to use tXMLMap with elements with variable number of occurrency</title>
      <link>https://community.qlik.com/t5/Talend-Studio/how-to-use-tXMLMap-with-elements-with-variable-number-of/m-p/2342416#M110284</link>
      <description>My job:&lt;BR /&gt;tFileInputXML --&amp;gt; tXMLMap --&amp;gt; tFileOutputXML&lt;BR /&gt;the settings of the tXMLMap are the ones I posted previously.&lt;BR /&gt;Now, where do I put tht tSortRow your were suggesting??&lt;BR /&gt;the flow that enters tXMLMap is composed of a single row: the root of the input xml file</description>
      <pubDate>Thu, 21 Feb 2013 17:13:14 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/how-to-use-tXMLMap-with-elements-with-variable-number-of/m-p/2342416#M110284</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2013-02-21T17:13:14Z</dc:date>
    </item>
    <item>
      <title>Re: how to use tXMLMap with elements with variable number of occurrency</title>
      <link>https://community.qlik.com/t5/Talend-Studio/how-to-use-tXMLMap-with-elements-with-variable-number-of/m-p/2342417#M110285</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;TABLE border="1"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;My job:&lt;BR /&gt;tFileInputXML --&amp;gt; tXMLMap --&amp;gt; tFileOutputXML&lt;BR /&gt;the settings of the tXMLMap are the ones I posted previously.&lt;BR /&gt;Now, where do I put tht tSortRow your were suggesting??&lt;BR /&gt;the flow that enters tXMLMap is composed of a single row: the root of the input xml file&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;tFileInputXML --&amp;gt;tSortRow--&amp;gt; tXMLMap --&amp;gt; tFileOutputXML</description>
      <pubDate>Fri, 22 Feb 2013 01:53:27 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/how-to-use-tXMLMap-with-elements-with-variable-number-of/m-p/2342417#M110285</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2013-02-22T01:53:27Z</dc:date>
    </item>
    <item>
      <title>Re: how to use tXMLMap with elements with variable number of occurrency</title>
      <link>https://community.qlik.com/t5/Talend-Studio/how-to-use-tXMLMap-with-elements-with-variable-number-of/m-p/2342418#M110286</link>
      <description>Shong, 
&lt;BR /&gt;the output of tFileInputXML is one single row, i.e. the root node of the xml input file. Applying tSortRow the way you suggested only allows me to sort the root node, but since there is only one such node nothing really changes. In fact I get the same output as above. I will try to be a bit more detailed now, so you can compare and see where I am doing it wrong. 
&lt;BR /&gt;I will attach to this post a series of images that detail the whole job and each single component. 
&lt;BR /&gt;The input and output xml files are: 
&lt;BR /&gt;-------------------------------------Input--------------------------------- 
&lt;BR /&gt;&amp;lt;collection&amp;gt; 
&lt;BR /&gt; &amp;lt;account&amp;gt; 
&lt;BR /&gt; &amp;lt;ownerSurname&amp;gt;Smith&amp;lt;/ownerSurname&amp;gt; 
&lt;BR /&gt; &amp;lt;ownerName&amp;gt;John&amp;lt;/ownerName&amp;gt; 
&lt;BR /&gt; &amp;lt;creditCard&amp;gt;xxxx-xxxx-xxxx-xxxx&amp;lt;/creditCard&amp;gt; 
&lt;BR /&gt; &amp;lt;outcome&amp;gt;120.0&amp;lt;/outcome&amp;gt; 
&lt;BR /&gt; &amp;lt;outcome&amp;gt;135.0&amp;lt;/outcome&amp;gt; 
&lt;BR /&gt; &amp;lt;outcome&amp;gt;20.0&amp;lt;/outcome&amp;gt; 
&lt;BR /&gt; &amp;lt;income&amp;gt;1120.0&amp;lt;/income&amp;gt; 
&lt;BR /&gt; &amp;lt;income&amp;gt;35.0&amp;lt;/income&amp;gt; 
&lt;BR /&gt; &amp;lt;/account&amp;gt; 
&lt;BR /&gt; &amp;lt;account&amp;gt; 
&lt;BR /&gt; &amp;lt;ownerSurname&amp;gt;Brown&amp;lt;/ownerSurname&amp;gt; 
&lt;BR /&gt; &amp;lt;ownerName&amp;gt;James&amp;lt;/ownerName&amp;gt; 
&lt;BR /&gt; &amp;lt;outcome&amp;gt;1120.99&amp;lt;/outcome&amp;gt; 
&lt;BR /&gt; &amp;lt;income&amp;gt;11.01&amp;lt;/income&amp;gt; 
&lt;BR /&gt; &amp;lt;income&amp;gt;3.01&amp;lt;/income&amp;gt; 
&lt;BR /&gt; &amp;lt;/account&amp;gt; 
&lt;BR /&gt; &amp;lt;account&amp;gt; 
&lt;BR /&gt; &amp;lt;ownerSurname&amp;gt;White&amp;lt;/ownerSurname&amp;gt; 
&lt;BR /&gt; &amp;lt;ownerName&amp;gt;James&amp;lt;/ownerName&amp;gt; 
&lt;BR /&gt; &amp;lt;outcome&amp;gt;1&amp;lt;/outcome&amp;gt; 
&lt;BR /&gt; &amp;lt;outcome&amp;gt;2&amp;lt;/outcome&amp;gt; 
&lt;BR /&gt; &amp;lt;income&amp;gt;3&amp;lt;/income&amp;gt; 
&lt;BR /&gt; &amp;lt;/account&amp;gt; 
&lt;BR /&gt;&amp;lt;/collection&amp;gt; 
&lt;BR /&gt; 
&lt;BR /&gt;-------------------------------------Output--------------------------------- 
&lt;BR /&gt;&amp;lt;?xml version="1.0" encoding="ISO-8859-15"?&amp;gt; 
&lt;BR /&gt;&amp;lt;collection&amp;gt; 
&lt;BR /&gt; &amp;lt;account&amp;gt; 
&lt;BR /&gt; &amp;lt;ownerSurname&amp;gt;Smith&amp;lt;/ownerSurname&amp;gt; 
&lt;BR /&gt; &amp;lt;ownerName&amp;gt;John&amp;lt;/ownerName&amp;gt; 
&lt;BR /&gt; &amp;lt;creditCard&amp;gt;xxxx-xxxx-xxxx-xxxx&amp;lt;/creditCard&amp;gt; 
&lt;BR /&gt; &amp;lt;/account&amp;gt; 
&lt;BR /&gt;&amp;lt;/collection&amp;gt; 
&lt;BR /&gt;&amp;lt;?xml version="1.0" encoding="ISO-8859-15"?&amp;gt; 
&lt;BR /&gt;&amp;lt;collection&amp;gt; 
&lt;BR /&gt; &amp;lt;account&amp;gt; 
&lt;BR /&gt; &amp;lt;ownerSurname&amp;gt;Brown&amp;lt;/ownerSurname&amp;gt; 
&lt;BR /&gt; &amp;lt;ownerName&amp;gt;James&amp;lt;/ownerName&amp;gt; 
&lt;BR /&gt; &amp;lt;creditCard/&amp;gt; 
&lt;BR /&gt; &amp;lt;/account&amp;gt; 
&lt;BR /&gt;&amp;lt;/collection&amp;gt; 
&lt;BR /&gt;&amp;lt;?xml version="1.0" encoding="ISO-8859-15"?&amp;gt; 
&lt;BR /&gt;&amp;lt;collection&amp;gt; 
&lt;BR /&gt; &amp;lt;account&amp;gt; 
&lt;BR /&gt; &amp;lt;ownerSurname&amp;gt;White&amp;lt;/ownerSurname&amp;gt; 
&lt;BR /&gt; &amp;lt;ownerName&amp;gt;James&amp;lt;/ownerName&amp;gt; 
&lt;BR /&gt; &amp;lt;creditCard/&amp;gt; 
&lt;BR /&gt; &amp;lt;/account&amp;gt; 
&lt;BR /&gt;&amp;lt;/collection&amp;gt; 
&lt;BR /&gt;&amp;lt;?xml version="1.0" encoding="ISO-8859-15"?&amp;gt; 
&lt;BR /&gt;&amp;lt;collection&amp;gt; 
&lt;BR /&gt; &amp;lt;account&amp;gt; 
&lt;BR /&gt; &amp;lt;ownerSurname&amp;gt;Smith&amp;lt;/ownerSurname&amp;gt; 
&lt;BR /&gt; &amp;lt;ownerName&amp;gt;John&amp;lt;/ownerName&amp;gt; 
&lt;BR /&gt; &amp;lt;outcome&amp;gt;120.0&amp;lt;/outcome&amp;gt; 
&lt;BR /&gt; &amp;lt;/account&amp;gt; 
&lt;BR /&gt;&amp;lt;/collection&amp;gt; 
&lt;BR /&gt;&amp;lt;?xml version="1.0" encoding="ISO-8859-15"?&amp;gt; 
&lt;BR /&gt;&amp;lt;collection&amp;gt; 
&lt;BR /&gt; &amp;lt;account&amp;gt; 
&lt;BR /&gt; &amp;lt;ownerSurname&amp;gt;Brown&amp;lt;/ownerSurname&amp;gt; 
&lt;BR /&gt; &amp;lt;ownerName&amp;gt;James&amp;lt;/ownerName&amp;gt; 
&lt;BR /&gt; &amp;lt;outcome&amp;gt;1120.99&amp;lt;/outcome&amp;gt; 
&lt;BR /&gt; &amp;lt;/account&amp;gt; 
&lt;BR /&gt;&amp;lt;/collection&amp;gt; 
&lt;BR /&gt;&amp;lt;?xml version="1.0" encoding="ISO-8859-15"?&amp;gt; 
&lt;BR /&gt;&amp;lt;collection&amp;gt; 
&lt;BR /&gt; &amp;lt;account&amp;gt; 
&lt;BR /&gt; &amp;lt;ownerSurname&amp;gt;White&amp;lt;/ownerSurname&amp;gt; 
&lt;BR /&gt; &amp;lt;ownerName&amp;gt;James&amp;lt;/ownerName&amp;gt; 
&lt;BR /&gt; &amp;lt;outcome&amp;gt;1&amp;lt;/outcome&amp;gt; 
&lt;BR /&gt; &amp;lt;/account&amp;gt; 
&lt;BR /&gt;&amp;lt;/collection&amp;gt; 
&lt;BR /&gt;&amp;lt;?xml version="1.0" encoding="ISO-8859-15"?&amp;gt; 
&lt;BR /&gt;&amp;lt;collection&amp;gt; 
&lt;BR /&gt; &amp;lt;account&amp;gt; 
&lt;BR /&gt; &amp;lt;ownerSurname&amp;gt;Smith&amp;lt;/ownerSurname&amp;gt; 
&lt;BR /&gt; &amp;lt;ownerName&amp;gt;John&amp;lt;/ownerName&amp;gt; 
&lt;BR /&gt; &amp;lt;income&amp;gt;1120.0&amp;lt;/income&amp;gt; 
&lt;BR /&gt; &amp;lt;/account&amp;gt; 
&lt;BR /&gt;&amp;lt;/collection&amp;gt; 
&lt;BR /&gt;&amp;lt;?xml version="1.0" encoding="ISO-8859-15"?&amp;gt; 
&lt;BR /&gt;&amp;lt;collection&amp;gt; 
&lt;BR /&gt; &amp;lt;account&amp;gt; 
&lt;BR /&gt; &amp;lt;ownerSurname&amp;gt;Brown&amp;lt;/ownerSurname&amp;gt; 
&lt;BR /&gt; &amp;lt;ownerName&amp;gt;James&amp;lt;/ownerName&amp;gt; 
&lt;BR /&gt; &amp;lt;income&amp;gt;11.01&amp;lt;/income&amp;gt; 
&lt;BR /&gt; &amp;lt;/account&amp;gt; 
&lt;BR /&gt;&amp;lt;/collection&amp;gt; 
&lt;BR /&gt;&amp;lt;?xml version="1.0" encoding="ISO-8859-15"?&amp;gt; 
&lt;BR /&gt;&amp;lt;collection&amp;gt; 
&lt;BR /&gt; &amp;lt;account&amp;gt; 
&lt;BR /&gt; &amp;lt;ownerSurname&amp;gt;White&amp;lt;/ownerSurname&amp;gt; 
&lt;BR /&gt; &amp;lt;ownerName&amp;gt;James&amp;lt;/ownerName&amp;gt; 
&lt;BR /&gt; &amp;lt;income&amp;gt;3&amp;lt;/income&amp;gt; 
&lt;BR /&gt; &amp;lt;/account&amp;gt; 
&lt;BR /&gt;&amp;lt;/collection&amp;gt; 
&lt;BR /&gt; 
&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009MDrs.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/154040iCABF9238B53197FD/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009MDrs.png" alt="0683p000009MDrs.png" /&gt;&lt;/span&gt; 
&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009MDrx.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/137553iA75EB4A1EEE1F330/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009MDrx.png" alt="0683p000009MDrx.png" /&gt;&lt;/span&gt; 
&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009MDrj.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/157149iAD32E2BA8B3442EE/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009MDrj.png" alt="0683p000009MDrj.png" /&gt;&lt;/span&gt; 
&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009MDs2.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/135386i9E458310DA576D33/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009MDs2.png" alt="0683p000009MDs2.png" /&gt;&lt;/span&gt; 
&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009MDs7.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/152159iD50E1D42195B9B15/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009MDs7.png" alt="0683p000009MDs7.png" /&gt;&lt;/span&gt;</description>
      <pubDate>Fri, 22 Feb 2013 09:27:12 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/how-to-use-tXMLMap-with-elements-with-variable-number-of/m-p/2342418#M110286</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2013-02-22T09:27:12Z</dc:date>
    </item>
    <item>
      <title>Re: how to use tXMLMap with elements with variable number of occurrency</title>
      <link>https://community.qlik.com/t5/Talend-Studio/how-to-use-tXMLMap-with-elements-with-variable-number-of/m-p/2342419#M110287</link>
      <description>Hi
&lt;BR /&gt;What are your expected result?
&lt;BR /&gt;Shong</description>
      <pubDate>Fri, 22 Feb 2013 17:37:53 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/how-to-use-tXMLMap-with-elements-with-variable-number-of/m-p/2342419#M110287</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2013-02-22T17:37:53Z</dc:date>
    </item>
    <item>
      <title>Re: how to use tXMLMap with elements with variable number of occurrency</title>
      <link>https://community.qlik.com/t5/Talend-Studio/how-to-use-tXMLMap-with-elements-with-variable-number-of/m-p/2342420#M110288</link>
      <description>Same as input</description>
      <pubDate>Mon, 25 Feb 2013 09:17:39 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/how-to-use-tXMLMap-with-elements-with-variable-number-of/m-p/2342420#M110288</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2013-02-25T09:17:39Z</dc:date>
    </item>
    <item>
      <title>Re: how to use tXMLMap with elements with variable number of occurrency</title>
      <link>https://community.qlik.com/t5/Talend-Studio/how-to-use-tXMLMap-with-elements-with-variable-number-of/m-p/2342421#M110289</link>
      <description>Hello! I was having a simliar problem and couldnt find any result, so I thought I could post my solution here. 
&lt;BR /&gt;My Problem: I had to replace certain strings as value of an element in a xml-file. 
&lt;BR /&gt;Solution: Use XSLT "transform.xsl" to first copy the whole document and in a 2. step replace the strings which are stored in the XML "replace.xml" (previously created with tAdvancedFileOutputXML) 
&lt;BR /&gt;Contents of my files: 
&lt;BR /&gt;----------------------------- 
&lt;BR /&gt; 
&lt;B&gt;replace xml&lt;/B&gt;: 
&lt;BR /&gt;&amp;lt;?xml version="1.0" encoding="ISO-8859-15"?&amp;gt; 
&lt;BR /&gt;&amp;lt;list&amp;gt; 
&lt;BR /&gt; &amp;lt;sic sic="old-text1"&amp;gt;new-text1&amp;lt;/sic&amp;gt; 
&lt;BR /&gt; &amp;lt;sic sic="old-text2"&amp;gt;new-text2&amp;lt;/sic&amp;gt; 
&lt;BR /&gt;&amp;lt;/list&amp;gt; 
&lt;BR /&gt;----------------------------- 
&lt;BR /&gt; 
&lt;B&gt;transform.xsl&lt;/B&gt; (still needs some improvement, currently replaces whole element and not just the value of it) 
&lt;BR /&gt;&amp;lt;?xml version="1.0" encoding="UTF-8"?&amp;gt; 
&lt;BR /&gt;&amp;lt;xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="2.0"&amp;gt; 
&lt;BR /&gt; &amp;lt;xsl 
&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009MA5A.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/143082iB236712184B767DA/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009MA5A.png" alt="0683p000009MA5A.png" /&gt;&lt;/span&gt;utput omit-xml-declaration="no" indent="no" /&amp;gt; 
&lt;BR /&gt; 
&lt;BR /&gt; &amp;lt;!-- Copy whole document --&amp;gt; 
&lt;BR /&gt; &amp;lt;xsl:template match="node()|@*"&amp;gt; 
&lt;BR /&gt; &amp;lt;xsl:copy&amp;gt; 
&lt;BR /&gt; &amp;lt;!--&amp;lt;xsl:apply-templates xpath-default-namespace="http://www.cdisc.org/ns/odm/v1.3" select="node()|@*"/&amp;gt;--&amp;gt; 
&lt;BR /&gt; &amp;lt;xsl:apply-templates select="node()|@*"/&amp;gt; 
&lt;BR /&gt; &amp;lt;/xsl:copy&amp;gt; 
&lt;BR /&gt; &amp;lt;/xsl:template&amp;gt; 
&lt;BR /&gt; &amp;lt;!-- Replace SIC in document with RandomID --&amp;gt; 
&lt;BR /&gt; &amp;lt;xsl:variable name="list" as="element(sic)+" select="document('replace.xml')/list/sic" /&amp;gt; 
&lt;BR /&gt; &amp;lt;xsl:variable name="sic-regex" select="string-join($list/@sic, '|')" /&amp;gt; 
&lt;BR /&gt; 
&lt;BR /&gt; &amp;lt;xsl:template match="/ODM/ClinicalData/SubjectData/StudyEventData/FormData/ItemGroupData/ItemDataString"&amp;gt; 
&lt;BR /&gt; &amp;lt;xsl:analyze-string select="." regex="{$sic-regex}"&amp;gt; 
&lt;BR /&gt; &amp;lt;xsl:matching-substring&amp;gt; 
&lt;BR /&gt; &amp;lt;xsl:variable name="sic" select="." /&amp;gt; 
&lt;BR /&gt; &amp;lt;ItemDataString ItemOID="FF.SUBJID"&amp;gt; 
&lt;BR /&gt; &amp;lt;xsl:value-of select="$list" /&amp;gt; 
&lt;BR /&gt; &amp;lt;/ItemDataString&amp;gt; 
&lt;BR /&gt; &amp;lt;/xsl:matching-substring&amp;gt; 
&lt;BR /&gt; &amp;lt;xsl:non-matching-substring&amp;gt; 
&lt;BR /&gt; &amp;lt;xsl:value-of select="." /&amp;gt; 
&lt;BR /&gt; &amp;lt;/xsl:non-matching-substring&amp;gt; 
&lt;BR /&gt; &amp;lt;/xsl:analyze-string&amp;gt; 
&lt;BR /&gt; &amp;lt;/xsl:template&amp;gt; 
&lt;BR /&gt;&amp;lt;/xsl:stylesheet&amp;gt;</description>
      <pubDate>Mon, 18 Nov 2013 11:15:54 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/how-to-use-tXMLMap-with-elements-with-variable-number-of/m-p/2342421#M110289</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2013-11-18T11:15:54Z</dc:date>
    </item>
    <item>
      <title>Re: how to use tXMLMap with elements with variable number of occurrency</title>
      <link>https://community.qlik.com/t5/Talend-Studio/how-to-use-tXMLMap-with-elements-with-variable-number-of/m-p/2342422#M110290</link>
      <description>I'm facing similar problem as ed.pag.&lt;BR /&gt;No solution still?</description>
      <pubDate>Tue, 03 Mar 2015 06:15:15 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/how-to-use-tXMLMap-with-elements-with-variable-number-of/m-p/2342422#M110290</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2015-03-03T06:15:15Z</dc:date>
    </item>
    <item>
      <title>Re: how to use tXMLMap with elements with variable number of occurrency</title>
      <link>https://community.qlik.com/t5/Talend-Studio/how-to-use-tXMLMap-with-elements-with-variable-number-of/m-p/2342423#M110291</link>
      <description>Hello,&lt;BR /&gt;Talend Can some one explain me how i can connect to tRowGenerator to tXMLMap and i want &amp;nbsp;to show that output in the tAdvancedFileoutputXML. please reply me &amp;nbsp;ASAP.&lt;BR /&gt;Thank you.</description>
      <pubDate>Fri, 17 Jun 2016 14:37:56 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/how-to-use-tXMLMap-with-elements-with-variable-number-of/m-p/2342423#M110291</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-06-17T14:37:56Z</dc:date>
    </item>
  </channel>
</rss>

