<?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 multiple loops in TOS 5.1.1 don't work! in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/tXMLMap-multiple-loops-in-TOS-5-1-1-don-t-work/m-p/2244196#M30426</link>
    <description>&lt;BLOCKQUOTE&gt;
 &lt;TABLE border="1"&gt;
  &lt;TBODY&gt;
   &lt;TR&gt;
    &lt;TD&gt;Hi&lt;BR /&gt;You are using tXMLMap, and tXMLMap supports multiple loop element, so you should define the XML tree on tXMLMap, not tAdvancedOutputXML, tAdvancedOutputXML don't support multiple loop elements. on tXMLMap, add a new column with Document type, and then define the xml tree. see pic1.&lt;BR /&gt;To generate the result as a XML file, link it to a tFileOutputXML and check the 'incoming record is a document' box.&lt;BR /&gt;Best regards&lt;BR /&gt;Shong&lt;/TD&gt;
   &lt;/TR&gt;
  &lt;/TBODY&gt;
 &lt;/TABLE&gt;
&lt;/BLOCKQUOTE&gt;
&lt;BR /&gt;Thanks for your hints Josh. I was using the Document Type in the tXMlMap as it's shown in my third pic above. But as you suggested I have replaced the tAdvancedOutputXML with tFileoutputXML. 
&lt;BR /&gt;I can now assign multiple loops but it seems that not all elements in the tXMLMap can be assigned as a loop element.Is it the case?
&lt;BR /&gt;I have specified in the below pic what elements need to be loop element. 
&lt;BR /&gt; 
&lt;BR /&gt;Can I email you the job if you can kindly have a look at it?
&lt;BR /&gt;Thanks
&lt;BR /&gt;Pouya</description>
    <pubDate>Tue, 14 Aug 2012 15:24:33 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2012-08-14T15:24:33Z</dc:date>
    <item>
      <title>tXMLMap multiple loops in TOS 5.1.1 don't work!</title>
      <link>https://community.qlik.com/t5/Talend-Studio/tXMLMap-multiple-loops-in-TOS-5-1-1-don-t-work/m-p/2244194#M30424</link>
      <description>Hi , &lt;BR /&gt;Here is my job that takes one XML file as the main input and one xml file as a lookup. The structure of the output xml file should be the same as the main input XML. I am only getting one field from the lookup xml.&lt;BR /&gt;The structure of the main XML input/output is in a way that needs 2 loops for each product. I installed the TOS 5.1.1 with this hope that I can resolve multiple loop elements but it seems that assigning the loop to multiple elements still don't work!! Or am I missing any point here?&lt;BR /&gt;Also, as you see in the tXMLFileOutputXML under Linker source there is no way to add linker from the MMN_Catalogue which is of type document to the link target.&lt;BR /&gt;The tag &amp;lt;UploadProductRequest&amp;gt; &amp;lt;/UploadProductRequest&amp;gt; holds all the details of one parent product under which the tag &amp;lt;variantValueRow&amp;gt; &amp;lt;/variantValueRow&amp;gt; holds the details of child products (different sizes/colours). So both tags needs to be set as loop elements.&lt;BR /&gt;So in summary, there are 2 issues:&lt;BR /&gt;          1. tXMLMap of TOS 5.1.1 still doesn't allow multiple loop elements&lt;BR /&gt;          2. The fields under MMN_Catalague document are not shown in the tAdvanceFileOutputXML so I can link them to the output structure.&lt;BR /&gt; &lt;BR /&gt;Please advice.&lt;BR /&gt;Many thanks&lt;BR /&gt;Pouya</description>
      <pubDate>Mon, 13 Aug 2012 16:47:11 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/tXMLMap-multiple-loops-in-TOS-5-1-1-don-t-work/m-p/2244194#M30424</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2012-08-13T16:47:11Z</dc:date>
    </item>
    <item>
      <title>Re: tXMLMap multiple loops in TOS 5.1.1 don't work!</title>
      <link>https://community.qlik.com/t5/Talend-Studio/tXMLMap-multiple-loops-in-TOS-5-1-1-don-t-work/m-p/2244195#M30425</link>
      <description>Hi
&lt;BR /&gt;You are using tXMLMap, and tXMLMap supports multiple loop element, so you should define the XML tree on tXMLMap, not tAdvancedOutputXML, tAdvancedOutputXML don't support multiple loop elements. on tXMLMap, add a new column with Document type, and then define the xml tree. see pic1.
&lt;BR /&gt;To generate the result as a XML file, link it to a tFileOutputXML and check the 'incoming record is a document' box.
&lt;BR /&gt;Best regards
&lt;BR /&gt;Shong</description>
      <pubDate>Tue, 14 Aug 2012 09:14:09 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/tXMLMap-multiple-loops-in-TOS-5-1-1-don-t-work/m-p/2244195#M30425</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2012-08-14T09:14:09Z</dc:date>
    </item>
    <item>
      <title>Re: tXMLMap multiple loops in TOS 5.1.1 don't work!</title>
      <link>https://community.qlik.com/t5/Talend-Studio/tXMLMap-multiple-loops-in-TOS-5-1-1-don-t-work/m-p/2244196#M30426</link>
      <description>&lt;BLOCKQUOTE&gt;
 &lt;TABLE border="1"&gt;
  &lt;TBODY&gt;
   &lt;TR&gt;
    &lt;TD&gt;Hi&lt;BR /&gt;You are using tXMLMap, and tXMLMap supports multiple loop element, so you should define the XML tree on tXMLMap, not tAdvancedOutputXML, tAdvancedOutputXML don't support multiple loop elements. on tXMLMap, add a new column with Document type, and then define the xml tree. see pic1.&lt;BR /&gt;To generate the result as a XML file, link it to a tFileOutputXML and check the 'incoming record is a document' box.&lt;BR /&gt;Best regards&lt;BR /&gt;Shong&lt;/TD&gt;
   &lt;/TR&gt;
  &lt;/TBODY&gt;
 &lt;/TABLE&gt;
&lt;/BLOCKQUOTE&gt;
&lt;BR /&gt;Thanks for your hints Josh. I was using the Document Type in the tXMlMap as it's shown in my third pic above. But as you suggested I have replaced the tAdvancedOutputXML with tFileoutputXML. 
&lt;BR /&gt;I can now assign multiple loops but it seems that not all elements in the tXMLMap can be assigned as a loop element.Is it the case?
&lt;BR /&gt;I have specified in the below pic what elements need to be loop element. 
&lt;BR /&gt; 
&lt;BR /&gt;Can I email you the job if you can kindly have a look at it?
&lt;BR /&gt;Thanks
&lt;BR /&gt;Pouya</description>
      <pubDate>Tue, 14 Aug 2012 15:24:33 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/tXMLMap-multiple-loops-in-TOS-5-1-1-don-t-work/m-p/2244196#M30426</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2012-08-14T15:24:33Z</dc:date>
    </item>
    <item>
      <title>Re: tXMLMap multiple loops in TOS 5.1.1 don't work!</title>
      <link>https://community.qlik.com/t5/Talend-Studio/tXMLMap-multiple-loops-in-TOS-5-1-1-don-t-work/m-p/2244197#M30427</link>
      <description>The xml structure should be as below:
&lt;BR /&gt;&amp;lt;mmn_pc_ext_type:UploadProductCatalogRequest&amp;gt; 
&lt;FONT color="blue"&gt;Root tag that includes 1 to many UploadProductRequest tag&lt;/FONT&gt;
&lt;BR /&gt;&amp;lt;UploadProductRequest&amp;gt; 
&lt;FONT color="blue"&gt;need to be a loop element&lt;/FONT&gt;
&lt;BR /&gt; &amp;lt;productIndexDetails&amp;gt;
&lt;BR /&gt; &amp;lt;tapCode&amp;gt;&amp;lt;/tapCode&amp;gt;
&lt;BR /&gt; &amp;lt;retailerCode&amp;gt;&amp;lt;/retailerCode&amp;gt;
&lt;BR /&gt; &amp;lt;retailerProductCode&amp;gt;&amp;lt;/retailerProductCode&amp;gt;
&lt;BR /&gt; &amp;lt;/productIndexDetails&amp;gt;
&lt;BR /&gt; &amp;lt;productActivationDetails&amp;gt;
&lt;BR /&gt; &amp;lt;activeFlag&amp;gt;true&amp;lt;/activeFlag&amp;gt;
&lt;BR /&gt; &amp;lt;startDate&amp;gt;2012-07-04&amp;lt;/startDate&amp;gt;
&lt;BR /&gt; &amp;lt;endDate&amp;gt;2999-12-29&amp;lt;/endDate&amp;gt;
&lt;BR /&gt; &amp;lt;/productActivationDetails&amp;gt;
&lt;BR /&gt; &amp;lt;productPresentationDetails&amp;gt;
&lt;BR /&gt; &amp;lt;name&amp;gt;&amp;lt;/name&amp;gt;
&lt;BR /&gt; &amp;lt;mainImageUrl&amp;gt;&amp;lt;/mainImageUrl&amp;gt;
&lt;BR /&gt; &amp;lt;goodsCategory&amp;gt;&amp;lt;/goodsCategory&amp;gt;
&lt;BR /&gt; &amp;lt;priceLabel&amp;gt;from &amp;lt;/priceLabel&amp;gt;
&lt;BR /&gt; &amp;lt;longProductDescription&amp;gt;
&lt;BR /&gt; &amp;lt;text&amp;gt;&amp;lt;/text&amp;gt;
&lt;BR /&gt; &amp;lt;/longProductDescription&amp;gt;
&lt;BR /&gt; &amp;lt;/productPresentationDetails&amp;gt;
&lt;BR /&gt; &amp;lt;productPurchaseDetails&amp;gt;
&lt;BR /&gt; &amp;lt;riskGrade&amp;gt;&amp;lt;/riskGrade&amp;gt;
&lt;BR /&gt; &amp;lt;/productPurchaseDetails&amp;gt;
&lt;BR /&gt; &amp;lt;productVariantDetails&amp;gt;
&lt;BR /&gt; &amp;lt;variantKey&amp;gt; 
&lt;FONT color="blue"&gt;need to be a loop element&lt;/FONT&gt;
&lt;BR /&gt; &amp;lt;key&amp;gt;COLOUR&amp;lt;/key&amp;gt;
&lt;BR /&gt; &amp;lt;value&amp;gt;COLOUR&amp;lt;/value&amp;gt;
&lt;BR /&gt; &amp;lt;/variantKey&amp;gt;
&lt;BR /&gt; &amp;lt;variantValueRow&amp;gt; 
&lt;FONT color="blue"&gt;need to be a loop element - each variantValueRow tag is for one child product&lt;/FONT&gt;
&lt;BR /&gt; &amp;lt;retailerSkuCode&amp;gt;&amp;lt;/retailerSkuCode&amp;gt;
&lt;BR /&gt; &amp;lt;variantStockDetails&amp;gt;
&lt;BR /&gt; &amp;lt;maxOrderQuantity&amp;gt;&amp;lt;/maxOrderQuantity&amp;gt;
&lt;BR /&gt; &amp;lt;/variantStockDetails&amp;gt;
&lt;BR /&gt; &amp;lt;itemPrice&amp;gt;&amp;lt;/itemPrice&amp;gt;
&lt;BR /&gt; &amp;lt;vat&amp;gt;&amp;lt;/vat&amp;gt;
&lt;BR /&gt; &amp;lt;deliveryOption&amp;gt;
&lt;BR /&gt; &amp;lt;deliveryPrice&amp;gt;&amp;lt;/deliveryPrice&amp;gt;
&lt;BR /&gt; &amp;lt;totalPrice&amp;gt;&amp;lt;/totalPrice&amp;gt;
&lt;BR /&gt; &amp;lt;description&amp;gt;&amp;lt;/description&amp;gt;
&lt;BR /&gt; &amp;lt;deliveryVAT&amp;gt;&amp;lt;/deliveryVAT&amp;gt;
&lt;BR /&gt; &amp;lt;key&amp;gt;&amp;lt;/key&amp;gt;
&lt;BR /&gt; &amp;lt;/deliveryOption&amp;gt;
&lt;BR /&gt; &amp;lt;variantValueColumn&amp;gt; 
&lt;FONT color="blue"&gt;need to be a loop element&lt;/FONT&gt;
&lt;BR /&gt; &amp;lt;key&amp;gt;COLOUR&amp;lt;/key&amp;gt;
&lt;BR /&gt; &amp;lt;value&amp;gt;Cream&amp;lt;/value&amp;gt;
&lt;BR /&gt; &amp;lt;/variantValueColumn&amp;gt;
&lt;BR /&gt; &amp;lt;/variantValueRow&amp;gt;
&lt;BR /&gt; &amp;lt;variantValueRow&amp;gt;
&lt;BR /&gt; &amp;lt;retailerSkuCode&amp;gt;DIS582-1&amp;lt;/retailerSkuCode&amp;gt;
&lt;BR /&gt; &amp;lt;variantStockDetails&amp;gt;
&lt;BR /&gt; &amp;lt;maxOrderQuantity&amp;gt;10&amp;lt;/maxOrderQuantity&amp;gt;
&lt;BR /&gt; &amp;lt;/variantStockDetails&amp;gt;
&lt;BR /&gt; &amp;lt;itemPrice&amp;gt;14.99&amp;lt;/itemPrice&amp;gt;
&lt;BR /&gt; &amp;lt;vat&amp;gt;2.50&amp;lt;/vat&amp;gt;
&lt;BR /&gt; &amp;lt;deliveryOption&amp;gt;
&lt;BR /&gt; &amp;lt;deliveryPrice&amp;gt;0.00&amp;lt;/deliveryPrice&amp;gt;
&lt;BR /&gt; &amp;lt;totalPrice&amp;gt;14.99&amp;lt;/totalPrice&amp;gt;
&lt;BR /&gt; &amp;lt;description&amp;gt;1-5 Working Days&amp;lt;/description&amp;gt;
&lt;BR /&gt; &amp;lt;deliveryVAT&amp;gt;0.00&amp;lt;/deliveryVAT&amp;gt;
&lt;BR /&gt; &amp;lt;key&amp;gt;ANS&amp;lt;/key&amp;gt;
&lt;BR /&gt; &amp;lt;/deliveryOption&amp;gt;
&lt;BR /&gt; &amp;lt;variantValueColumn&amp;gt;
&lt;BR /&gt; &amp;lt;key&amp;gt;COLOUR&amp;lt;/key&amp;gt;
&lt;BR /&gt; &amp;lt;value&amp;gt;Red&amp;lt;/value&amp;gt;
&lt;BR /&gt; &amp;lt;/variantValueColumn&amp;gt;
&lt;BR /&gt; &amp;lt;/variantValueRow&amp;gt;
&lt;BR /&gt; &amp;lt;/productVariantDetails&amp;gt;
&lt;BR /&gt;&amp;lt;/UploadProductRequest&amp;gt;
&lt;BR /&gt;&amp;lt;/mmn_pc_ext_type:UploadProductCatalogRequest&amp;gt;
&lt;BR /&gt;But the output only includes one child product (variantValuerow tag)!
&lt;BR /&gt;Thanks
&lt;BR /&gt;Pouya</description>
      <pubDate>Tue, 14 Aug 2012 15:33:30 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/tXMLMap-multiple-loops-in-TOS-5-1-1-don-t-work/m-p/2244197#M30427</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2012-08-14T15:33:30Z</dc:date>
    </item>
    <item>
      <title>Re: tXMLMap multiple loops in TOS 5.1.1 don't work!</title>
      <link>https://community.qlik.com/t5/Talend-Studio/tXMLMap-multiple-loops-in-TOS-5-1-1-don-t-work/m-p/2244198#M30428</link>
      <description>Hi
&lt;BR /&gt;The loop elements should in the same level, however, it is a inheritance relationship in your case, the variantValueColumn element should be defined as a loop element, variantValueRow and UploadProductRequest element as group element. The screenshot shows a simple XML tree structure contains group element.</description>
      <pubDate>Wed, 15 Aug 2012 15:36:26 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/tXMLMap-multiple-loops-in-TOS-5-1-1-don-t-work/m-p/2244198#M30428</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2012-08-15T15:36:26Z</dc:date>
    </item>
    <item>
      <title>Re: tXMLMap multiple loops in TOS 5.1.1 don't work!</title>
      <link>https://community.qlik.com/t5/Talend-Studio/tXMLMap-multiple-loops-in-TOS-5-1-1-don-t-work/m-p/2244199#M30429</link>
      <description>Thanks Shong. I set this post as resolved now.</description>
      <pubDate>Mon, 20 Aug 2012 10:20:58 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/tXMLMap-multiple-loops-in-TOS-5-1-1-don-t-work/m-p/2244199#M30429</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2012-08-20T10:20:58Z</dc:date>
    </item>
  </channel>
</rss>

