<?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 En tXMLMap, les boucles imbriquées (nested loops) in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/En-tXMLMap-les-boucles-imbriqu%C3%A9es-nested-loops/m-p/2522593#M147700</link>
    <description>&lt;P&gt;Hello! I'm blocked trying to consume a response from a tESBConsumer in a tXMLMap. I can't define a loop inside another loop.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="cyrineAttijari_0-1751033290505.jpeg" style="width: 780px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/181688i62AB437FD7ADB612/image-dimensions/780x419?v=v2" width="780" height="419" role="button" title="cyrineAttijari_0-1751033290505.jpeg" alt="cyrineAttijari_0-1751033290505.jpeg" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Fri, 27 Jun 2025 14:09:35 GMT</pubDate>
    <dc:creator>cyrineAttijari</dc:creator>
    <dc:date>2025-06-27T14:09:35Z</dc:date>
    <item>
      <title>En tXMLMap, les boucles imbriquées (nested loops)</title>
      <link>https://community.qlik.com/t5/Talend-Studio/En-tXMLMap-les-boucles-imbriqu%C3%A9es-nested-loops/m-p/2522593#M147700</link>
      <description>&lt;P&gt;Hello! I'm blocked trying to consume a response from a tESBConsumer in a tXMLMap. I can't define a loop inside another loop.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="cyrineAttijari_0-1751033290505.jpeg" style="width: 780px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/181688i62AB437FD7ADB612/image-dimensions/780x419?v=v2" width="780" height="419" role="button" title="cyrineAttijari_0-1751033290505.jpeg" alt="cyrineAttijari_0-1751033290505.jpeg" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 27 Jun 2025 14:09:35 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/En-tXMLMap-les-boucles-imbriqu%C3%A9es-nested-loops/m-p/2522593#M147700</guid>
      <dc:creator>cyrineAttijari</dc:creator>
      <dc:date>2025-06-27T14:09:35Z</dc:date>
    </item>
    <item>
      <title>Re: En tXMLMap, les boucles imbriquées (nested loops)</title>
      <link>https://community.qlik.com/t5/Talend-Studio/En-tXMLMap-les-boucles-imbriqu%C3%A9es-nested-loops/m-p/2541595#M149341</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;In tXMLMap, nested loops are not handled as procedural loops. The component works on a declarative mapping model, where looping is driven by repeating XML elements defined in the input schema.&lt;/P&gt;&lt;P&gt;Important points:&lt;/P&gt;&lt;P&gt;tXMLMap does not support explicit nested for-style loops.&lt;/P&gt;&lt;P&gt;Each loop is defined by selecting a loop element (repeating XML node).&lt;/P&gt;&lt;P&gt;Multiple loop elements are supported, but they must follow the XML hierarchy, not arbitrary nesting logic.&lt;/P&gt;&lt;P&gt;Supported approaches:&lt;/P&gt;&lt;P&gt;Define loop elements based on XML structure&lt;BR /&gt;If the XML contains nested repeating nodes, define each repeating node as a loop element in tXMLMap and map them according to their parent-child relationship.&lt;/P&gt;&lt;P&gt;Use multiple tXMLMap components&lt;BR /&gt;For complex nested logic, split the processing into multiple tXMLMap components:&lt;/P&gt;&lt;P&gt;First map/flatten the parent level&lt;/P&gt;&lt;P&gt;Then process child loops in a second tXMLMap&lt;/P&gt;&lt;P&gt;Flatten or pre-process the XML&lt;BR /&gt;Use components such as tExtractXMLField to normalize or flatten deeply nested XML before mapping.&lt;/P&gt;&lt;P&gt;Use tWriteXMLField for complex generation&lt;BR /&gt;If the output requires complex nested looping logic that tXMLMap cannot express, tWriteXMLField is the supported alternative.&lt;/P&gt;&lt;P&gt;Best practice:&lt;BR /&gt;tXMLMap should be used for structure-driven XML mappings, not for complex procedural loop logic. When nested iteration becomes complex, splitting the logic across multiple components is the supported and maintainable approach.&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Gourav&lt;/P&gt;</description>
      <pubDate>Tue, 27 Jan 2026 06:41:37 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/En-tXMLMap-les-boucles-imbriqu%C3%A9es-nested-loops/m-p/2541595#M149341</guid>
      <dc:creator>gouravdubey5</dc:creator>
      <dc:date>2026-01-27T06:41:37Z</dc:date>
    </item>
  </channel>
</rss>

