<?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: Need Help with XML mapping - create XML with multiple loops of unrelated items in a single XML document output in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/Need-Help-with-XML-mapping-create-XML-with-multiple-loops-of/m-p/2204715#M5484</link>
    <description>&lt;P&gt;The post I sent you describes how to combine multiple loops using several tXMLMap components using String manipulation.&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;For Data Mapper help, go to the Knowledge Base. A good place to start is here:&amp;nbsp;&lt;A href="https://community.qlik.com/s/article/ka03p0000006EwKAAU" target="_blank"&gt;https://community.talend.com/t5/Design-and-Development/Talend-Data-Mapper-Intro-Part-2-Using-the-Data-Mapper/ta-p/38546&lt;/A&gt;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;Search "Talend Data Mapper" in the Knowledge Base and you will find other articles/videos&lt;/P&gt;</description>
    <pubDate>Fri, 30 Aug 2019 14:39:39 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2019-08-30T14:39:39Z</dc:date>
    <item>
      <title>Need Help with XML mapping - create XML with multiple loops of unrelated items in a single XML document output</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Need-Help-with-XML-mapping-create-XML-with-multiple-loops-of/m-p/2204712#M5481</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;We use the subscription version of Talend and need help creating a very specific XML document for use in an API process.&amp;nbsp; The XML structure has 2 elements that are unrelated to one another, but which can each have multiple values.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The pieces I'm interested in understanding are the looped elements&amp;nbsp;&lt;STRONG&gt;accounts&lt;/STRONG&gt; and&amp;nbsp;&lt;STRONG&gt;levels&lt;/STRONG&gt;.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Other important info: the values that will be used to generate the accounts and levels will come from a database connection and are stored in a table with the attributes needed in the XML output.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The XML structure is shown below.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;EXAMPLE API REQUEST FORMAT&lt;BR /&gt;&lt;BR /&gt;&amp;lt;?xml&amp;nbsp;version='1.0'&amp;nbsp;encoding='UTF-8'?&amp;gt;
&amp;lt;call&amp;nbsp;method="exportData"&amp;nbsp;callerName="a string that identifies your client application"&amp;gt;
&amp;lt;credentials&amp;nbsp;login="sampleuser@company.com"&amp;nbsp;password="my_pwd"&amp;nbsp;instanceCode="INSTANCE1"/&amp;gt;
&amp;lt;version&amp;nbsp;name="Budget 2014"&amp;nbsp;isDefault="false"/&amp;gt;
&amp;lt;format&amp;nbsp;useInternalCodes="true"&amp;nbsp;includeUnmappedItems="false"/&amp;gt;
&amp;lt;filters&amp;gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;STRONG&gt;&amp;lt;accounts&amp;gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;lt;account&amp;nbsp;code="A100"&amp;nbsp;isAssumption="true"&amp;nbsp;includeDescendants="false"/&amp;gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;lt;account&amp;nbsp;code="L100"&amp;nbsp;isAssumption="false"&amp;nbsp;includeDescendants="true"/&amp;gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;lt;/accounts&amp;gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;lt;levels&amp;gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;lt;level&amp;nbsp;name="Development"&amp;nbsp;isRollup="true"&amp;nbsp;includeDescendants="true"/&amp;gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;lt;level&amp;nbsp;name="QA"&amp;nbsp;isRollup="false"&amp;nbsp;includeDescendants="false"/&amp;gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;lt;/levels&amp;gt;&lt;/STRONG&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;lt;timeSpan&amp;nbsp;start="11/2013"&amp;nbsp;end="12/2014"/&amp;gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;lt;dimensionValues&amp;gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;lt;dimensionValue&amp;nbsp;dimName="Customer"&amp;nbsp;name="A Corp"&amp;nbsp;directChildren="true"/&amp;gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;lt;dimensionValue&amp;nbsp;dimName="Region"&amp;nbsp;name=""&amp;nbsp;uncategorized="true"&amp;nbsp;directChildren="false"/&amp;gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;lt;/dimensionValues&amp;gt;
&amp;lt;/filters&amp;gt;
&amp;lt;dimensions&amp;gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;lt;dimension&amp;nbsp;name="Product"/&amp;gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;lt;dimension&amp;nbsp;name="CountryRegion"/&amp;gt;
&amp;lt;/dimensions&amp;gt;
&amp;lt;rules&amp;nbsp;includeZeroRows="false"&amp;nbsp;includeRollups="false"&amp;nbsp;markInvalidValues="false"&amp;nbsp;markBlanks="false"&amp;nbsp;timeRollups="single"&amp;gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;lt;currency&amp;nbsp;useCorporate="false"&amp;nbsp;useLocal="false"&amp;nbsp;override="AUD"/&amp;gt;
&amp;lt;/rules&amp;gt;
&amp;lt;/call&amp;gt;&lt;/PRE&gt;
&lt;P&gt;I have tried tXMLMap with no success, it keeps outputting a separate documents each time it finds another account or level value but I need it in one single document.&amp;nbsp; I have also tried to understand the data mapper, but do not understand how to use it.&lt;/P&gt;</description>
      <pubDate>Sat, 16 Nov 2024 04:54:48 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Need-Help-with-XML-mapping-create-XML-with-multiple-loops-of/m-p/2204712#M5481</guid>
      <dc:creator>Adam_Bender</dc:creator>
      <dc:date>2024-11-16T04:54:48Z</dc:date>
    </item>
    <item>
      <title>Re: Need Help with XML mapping - create XML with multiple loops of unrelated items in a single XML document output</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Need-Help-with-XML-mapping-create-XML-with-multiple-loops-of/m-p/2204713#M5482</link>
      <description>&lt;P&gt;You can do this with Talend Data Mapper using the tHMap. It is a bit different from the rest of the Talend Components though. You will probably need to either take training in it or to do A LOT of research in how to use it. Once you understand it, it can be very powerful, but it is far too difficult to explain the ins and outs of this via a question and answer process here.&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;Alternatively you can use a trick with a couple of tXMLMap components. This might be easier to follow if you are familiar with these components. I have described a solution to a similar problem here....&lt;/P&gt; 
&lt;P&gt;&lt;A href="https://community.qlik.com/s/feed/0D53p00007vCm4JCAS" target="_blank"&gt;https://community.talend.com/t5/Design-and-Development/Multiple-Nested-loop-in-outputXML/m-p/82289&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 30 Aug 2019 11:25:51 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Need-Help-with-XML-mapping-create-XML-with-multiple-loops-of/m-p/2204713#M5482</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2019-08-30T11:25:51Z</dc:date>
    </item>
    <item>
      <title>Re: Need Help with XML mapping - create XML with multiple loops of unrelated items in a single XML document output</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Need-Help-with-XML-mapping-create-XML-with-multiple-loops-of/m-p/2204714#M5483</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I am familiar with data mapper, but don't completely understand how to use it.&amp;nbsp; That is the solution I would like to use, but I can't find much online that discusses how to create multiple loop sections.&lt;BR /&gt;&lt;BR /&gt;I have successfully created multiple loops using tXMLMap, but when I select the checkbox that's supposed to combine the output into a single document it still returns multiple mini-documents.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Questions:&lt;/P&gt;
&lt;P&gt;1. Can you point me to anything online that clearly explains how to use data mapper to do this?&lt;/P&gt;
&lt;P&gt;2. Have you ever experienced tXMLMap not aggregating into a single document?&amp;nbsp; If so, how do you fix this?&lt;/P&gt;</description>
      <pubDate>Fri, 30 Aug 2019 13:56:35 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Need-Help-with-XML-mapping-create-XML-with-multiple-loops-of/m-p/2204714#M5483</guid>
      <dc:creator>Adam_Bender</dc:creator>
      <dc:date>2019-08-30T13:56:35Z</dc:date>
    </item>
    <item>
      <title>Re: Need Help with XML mapping - create XML with multiple loops of unrelated items in a single XML document output</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Need-Help-with-XML-mapping-create-XML-with-multiple-loops-of/m-p/2204715#M5484</link>
      <description>&lt;P&gt;The post I sent you describes how to combine multiple loops using several tXMLMap components using String manipulation.&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;For Data Mapper help, go to the Knowledge Base. A good place to start is here:&amp;nbsp;&lt;A href="https://community.qlik.com/s/article/ka03p0000006EwKAAU" target="_blank"&gt;https://community.talend.com/t5/Design-and-Development/Talend-Data-Mapper-Intro-Part-2-Using-the-Data-Mapper/ta-p/38546&lt;/A&gt;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;Search "Talend Data Mapper" in the Knowledge Base and you will find other articles/videos&lt;/P&gt;</description>
      <pubDate>Fri, 30 Aug 2019 14:39:39 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Need-Help-with-XML-mapping-create-XML-with-multiple-loops-of/m-p/2204715#M5484</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2019-08-30T14:39:39Z</dc:date>
    </item>
  </channel>
</rss>

