<?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: tXMLMap loop inside loop in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/tXMLMap-loop-inside-loop/m-p/2208256#M7565</link>
    <description>&lt;P&gt;Hi,&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;You can set loop in tXMLmap in a column if your datatype is document.&lt;/P&gt; 
&lt;P&gt;First, define&amp;nbsp; any column in txmlInput and give xpathquery as "." also check the getNodes button&lt;/P&gt; 
&lt;P&gt;&lt;SPAN class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="1.PNG" style="width: 999px;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009MZsF.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/146830iF19E034093C333B2/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009MZsF.png" alt="0683p000009MZsF.png" /&gt;&lt;/span&gt;&lt;/SPAN&gt;In the tXMLinput define the datatype of the new column as a document. Then right-click on the column and import structure from the XML file. Then set the loop in the column you want.&lt;/P&gt; 
&lt;P&gt;&lt;SPAN class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="2.PNG" style="width: 999px;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009MZsK.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/132797i97E9715784A0DBF9/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009MZsK.png" alt="0683p000009MZsK.png" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;Don't forget to give kudos/accept the solution when a replay is helpful.&lt;/P&gt; 
&lt;P&gt;Thanks,&lt;/P&gt; 
&lt;P&gt;Aarif&lt;/P&gt;</description>
    <pubDate>Tue, 09 Jun 2020 11:24:12 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2020-06-09T11:24:12Z</dc:date>
    <item>
      <title>tXMLMap loop inside loop</title>
      <link>https://community.qlik.com/t5/Talend-Studio/tXMLMap-loop-inside-loop/m-p/2208255#M7564</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am working on job that will parse my xml and save it to multiple DB tables using tXMLMap and tDBOutput. My problem is that in tXMLMap i cant set loop element inside loop element example:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&amp;lt;author&amp;gt;
   &amp;lt;book&amp;gt;
    &amp;lt;chapter/&amp;gt;
    &amp;lt;chapter/&amp;gt;
   &amp;lt;/book&amp;gt;
   &amp;lt;book&amp;gt;
    &amp;lt;chapter/&amp;gt;
    &amp;lt;chapter/&amp;gt;
   &amp;lt;/book&amp;gt;
&amp;lt;/author&amp;gt;&lt;/PRE&gt;&lt;P&gt;(as you can see i have loop of books that contains loop of chapters)&lt;/P&gt;&lt;P&gt;What is the best practice to parse such an xml?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 16 Nov 2024 02:11:58 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/tXMLMap-loop-inside-loop/m-p/2208255#M7564</guid>
      <dc:creator>michaelh1</dc:creator>
      <dc:date>2024-11-16T02:11:58Z</dc:date>
    </item>
    <item>
      <title>Re: tXMLMap loop inside loop</title>
      <link>https://community.qlik.com/t5/Talend-Studio/tXMLMap-loop-inside-loop/m-p/2208256#M7565</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;You can set loop in tXMLmap in a column if your datatype is document.&lt;/P&gt; 
&lt;P&gt;First, define&amp;nbsp; any column in txmlInput and give xpathquery as "." also check the getNodes button&lt;/P&gt; 
&lt;P&gt;&lt;SPAN class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="1.PNG" style="width: 999px;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009MZsF.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/146830iF19E034093C333B2/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009MZsF.png" alt="0683p000009MZsF.png" /&gt;&lt;/span&gt;&lt;/SPAN&gt;In the tXMLinput define the datatype of the new column as a document. Then right-click on the column and import structure from the XML file. Then set the loop in the column you want.&lt;/P&gt; 
&lt;P&gt;&lt;SPAN class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="2.PNG" style="width: 999px;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009MZsK.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/132797i97E9715784A0DBF9/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009MZsK.png" alt="0683p000009MZsK.png" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;Don't forget to give kudos/accept the solution when a replay is helpful.&lt;/P&gt; 
&lt;P&gt;Thanks,&lt;/P&gt; 
&lt;P&gt;Aarif&lt;/P&gt;</description>
      <pubDate>Tue, 09 Jun 2020 11:24:12 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/tXMLMap-loop-inside-loop/m-p/2208256#M7565</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2020-06-09T11:24:12Z</dc:date>
    </item>
    <item>
      <title>Re: tXMLMap loop inside loop</title>
      <link>https://community.qlik.com/t5/Talend-Studio/tXMLMap-loop-inside-loop/m-p/2208257#M7566</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;i know how to use single loop in xml document. But what i need is to iterate all the chapters (loop of chapters) in each book. So basically what i need is to iterate loop of chapters in the loop of books.&lt;/P&gt;</description>
      <pubDate>Tue, 09 Jun 2020 13:18:25 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/tXMLMap-loop-inside-loop/m-p/2208257#M7566</guid>
      <dc:creator>michaelh1</dc:creator>
      <dc:date>2020-06-09T13:18:25Z</dc:date>
    </item>
    <item>
      <title>Re: tXMLMap loop inside loop</title>
      <link>https://community.qlik.com/t5/Talend-Studio/tXMLMap-loop-inside-loop/m-p/2208258#M7567</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Basically you want to loop in the&amp;nbsp;&lt;SPAN&gt;chapters. For that, you need to insert data inside all the chapter tag and then loop in the chapter. You will be able to loop into it.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 09 Jun 2020 18:49:36 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/tXMLMap-loop-inside-loop/m-p/2208258#M7567</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2020-06-09T18:49:36Z</dc:date>
    </item>
    <item>
      <title>Re: tXMLMap loop inside loop</title>
      <link>https://community.qlik.com/t5/Talend-Studio/tXMLMap-loop-inside-loop/m-p/2208259#M7568</link>
      <description>&lt;P&gt;Yes you are right i need to loop all the chapters and store it to DB, but i also need to get the parent elements of element chapter author and book. lets say that my xml looks like this:&lt;/P&gt;&lt;PRE&gt;    &amp;lt;author&amp;gt;    
        &amp;lt;name&amp;gt;Author1&amp;lt;/name&amp;gt;
		&amp;lt;books&amp;gt;
			&amp;lt;book&amp;gt;
				&amp;lt;name&amp;gt;Book1&amp;lt;/name&amp;gt;
				&amp;lt;chapters&amp;gt;
					&amp;lt;chapter&amp;gt;
						&amp;lt;name&amp;gt;Chapter1&amp;lt;/name&amp;gt;
					&amp;lt;/chapter&amp;gt;
					&amp;lt;chapter&amp;gt;
						&amp;lt;name&amp;gt;Chapter2&amp;lt;/name&amp;gt;
					&amp;lt;/chapter&amp;gt;
				&amp;lt;/chapters&amp;gt;
			&amp;lt;/book&amp;gt;
			&amp;lt;book&amp;gt;
				&amp;lt;name&amp;gt;Book2&amp;lt;/name&amp;gt;
				&amp;lt;chapters&amp;gt;
					&amp;lt;chapter&amp;gt;
						&amp;lt;name&amp;gt;Chapter1&amp;lt;/name&amp;gt;
					&amp;lt;/chapter&amp;gt;
					&amp;lt;chapter&amp;gt;
						&amp;lt;name&amp;gt;Chapter2&amp;lt;/name&amp;gt;
					&amp;lt;/chapter&amp;gt;
					&amp;lt;chapter&amp;gt;
						&amp;lt;name&amp;gt;Chapter3&amp;lt;/name&amp;gt;
					&amp;lt;/chapter&amp;gt;
				&amp;lt;/chapters&amp;gt;
			&amp;lt;/book&amp;gt;
		&amp;lt;/books&amp;gt;
    &amp;lt;/author&amp;gt;&lt;/PRE&gt;&lt;P&gt;And i need to store to table Chapter with attributes chapter_name, book_name, author_name. So in this case i should have 5 rows in my table:&lt;/P&gt;&lt;P&gt;Chapter1|Book1|Author1&lt;/P&gt;&lt;P&gt;Chapter2|Book1|Author1&lt;/P&gt;&lt;P&gt;Chapter1|Book2|Author1&lt;/P&gt;&lt;P&gt;Chapter2|Book2|Author1&lt;/P&gt;&lt;P&gt;Chapter3|Book2|Author1&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If i will just put loop on chapter element i will get al the chapters but i wont get info from which book and author it was.&lt;/P&gt;</description>
      <pubDate>Wed, 10 Jun 2020 05:23:28 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/tXMLMap-loop-inside-loop/m-p/2208259#M7568</guid>
      <dc:creator>michaelh1</dc:creator>
      <dc:date>2020-06-10T05:23:28Z</dc:date>
    </item>
    <item>
      <title>Re: tXMLMap loop inside loop</title>
      <link>https://community.qlik.com/t5/Talend-Studio/tXMLMap-loop-inside-loop/m-p/2208260#M7569</link>
      <description>&lt;P&gt;If you give the loop in the chapter then all the attributes will come.&lt;SPAN class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="3.PNG" style="width: 999px;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009MZvJ.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/143448i43BC07B70EABB1AD/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009MZvJ.png" alt="0683p000009MZvJ.png" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt; 
&lt;P&gt;And the output you will get&lt;/P&gt; 
&lt;P&gt;&lt;SPAN class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="4.PNG" style="width: 400px;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009MZrs.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/142897i8A34B6BC675D1376/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009MZrs.png" alt="0683p000009MZrs.png" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;Don't forget to give kudos/accept the solution when a replay is helpful.&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 11 Jun 2020 23:45:12 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/tXMLMap-loop-inside-loop/m-p/2208260#M7569</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2020-06-11T23:45:12Z</dc:date>
    </item>
  </channel>
</rss>

