<?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: Reading multiple child element loop(independent loops) in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/Reading-multiple-child-element-loop-independent-loops/m-p/2207887#M7356</link>
    <description>what You describe as issue? 
&lt;BR /&gt;it is normal situation - if element present XPATH query return value, if not - null, then You can parse this nulls and change it for anything like "N/A" or etc. For example if feature step required save DOB in date column - use ? expression for decide use or not dateFormat 
&lt;BR /&gt;this is not issue, this is advantages 
&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009MACn.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/154443iC5B8CACEF3D12C6A/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009MACn.png" alt="0683p000009MACn.png" /&gt;&lt;/span&gt;</description>
    <pubDate>Tue, 21 Feb 2017 05:08:46 GMT</pubDate>
    <dc:creator>vapukov</dc:creator>
    <dc:date>2017-02-21T05:08:46Z</dc:date>
    <item>
      <title>Reading multiple child element loop(independent loops)</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Reading-multiple-child-element-loop-independent-loops/m-p/2207885#M7354</link>
      <description>I have a scenario of reading many child element, which is independent of each other.&amp;nbsp; 
&lt;BR /&gt;The child element may or may not be in loop and there is no guarantee that all the child element will be present in every source loop.&amp;nbsp; 
&lt;BR /&gt;Please find below the XML structure. 
&lt;BR /&gt;&amp;lt;entity id="10011"&amp;gt; 
&lt;BR /&gt;&amp;lt;listId&amp;gt;1072&amp;lt;/listId&amp;gt; 
&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;lt;listCode&amp;gt;AOE&amp;lt;/listCode&amp;gt; 
&lt;BR /&gt;&amp;lt;addresses&amp;gt; 
&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;address&amp;gt; 
&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;city&amp;gt;AL-KARTUM&amp;lt;/city&amp;gt; 
&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;country&amp;gt;SD&amp;lt;/country&amp;gt; 
&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;countryName&amp;gt;SUDAN&amp;lt;/countryName&amp;gt; 
&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;/address&amp;gt; 
&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;address&amp;gt; 
&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;city&amp;gt;AL-KHARTOUM&amp;lt;/city&amp;gt; 
&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;country&amp;gt;SD&amp;lt;/country&amp;gt; 
&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;countryName&amp;gt;SUDAN&amp;lt;/countryName&amp;gt; 
&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;/address&amp;gt; 
&lt;BR /&gt;&amp;lt;/addresses&amp;gt; 
&lt;BR /&gt;&amp;lt;dobs&amp;gt; 
&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;dob D="19" M="12" Y="1969"&amp;gt;12/19/1969&amp;lt;/dob&amp;gt; 
&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;lt;/dobs&amp;gt; 
&lt;BR /&gt;&amp;lt;/entity&amp;gt; 
&lt;BR /&gt;&amp;lt;entity id="10012"&amp;gt; 
&lt;BR /&gt;&amp;lt;listId&amp;gt;1008&amp;lt;/listId&amp;gt; 
&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;lt;listCode&amp;gt;BG&amp;lt;/listCode&amp;gt; 
&lt;BR /&gt;&amp;lt;pobs&amp;gt; 
&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;pob&amp;gt;EAST LOMBOK, WEST NUSA TENGGARA, INDONESIA&amp;lt;/pob&amp;gt; 
&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;pob&amp;gt;INDIA&amp;lt;/pob&amp;gt; 
&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;lt;/pobs&amp;gt; 
&lt;BR /&gt;&amp;lt;/entity&amp;gt; 
&lt;BR /&gt;Child elements to be extracted are &amp;lt;dob&amp;gt;, &amp;lt;pob&amp;gt;, &amp;nbsp;&amp;lt;country&amp;gt; and &amp;lt;city&amp;gt;, which may or may not be in loop. Source loop is &amp;lt;entity&amp;gt; 
&lt;BR /&gt;Can any one help me in resolving this issue.</description>
      <pubDate>Sat, 16 Nov 2024 10:04:00 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Reading-multiple-child-element-loop-independent-loops/m-p/2207885#M7354</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2024-11-16T10:04:00Z</dc:date>
    </item>
    <item>
      <title>Re: Reading multiple child element loop(independent loops)</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Reading-multiple-child-element-loop-independent-loops/m-p/2207886#M7355</link>
      <description>Hi,&lt;BR /&gt;Would you mind also posting your expected result on forum?&lt;BR /&gt;Best regards&lt;BR /&gt;Sabrina</description>
      <pubDate>Tue, 21 Feb 2017 02:46:39 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Reading-multiple-child-element-loop-independent-loops/m-p/2207886#M7355</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-02-21T02:46:39Z</dc:date>
    </item>
    <item>
      <title>Re: Reading multiple child element loop(independent loops)</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Reading-multiple-child-element-loop-independent-loops/m-p/2207887#M7356</link>
      <description>what You describe as issue? 
&lt;BR /&gt;it is normal situation - if element present XPATH query return value, if not - null, then You can parse this nulls and change it for anything like "N/A" or etc. For example if feature step required save DOB in date column - use ? expression for decide use or not dateFormat 
&lt;BR /&gt;this is not issue, this is advantages 
&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009MACn.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/154443iC5B8CACEF3D12C6A/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009MACn.png" alt="0683p000009MACn.png" /&gt;&lt;/span&gt;</description>
      <pubDate>Tue, 21 Feb 2017 05:08:46 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Reading-multiple-child-element-loop-independent-loops/m-p/2207887#M7356</guid>
      <dc:creator>vapukov</dc:creator>
      <dc:date>2017-02-21T05:08:46Z</dc:date>
    </item>
    <item>
      <title>Re: Reading multiple child element loop(independent loops)</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Reading-multiple-child-element-loop-independent-loops/m-p/2207888#M7357</link>
      <description>Hi&amp;nbsp; 
&lt;B&gt;&lt;FONT color="#5b5b5d"&gt;&lt;FONT size="2"&gt;&lt;FONT face="Verdana, Helvetica, Arial, sans-serif"&gt;vapukov/&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/B&gt; 
&lt;B&gt;&lt;FONT color="#5b5b5d"&gt;&lt;FONT size="2"&gt;&lt;FONT face="Verdana, Helvetica, Arial, sans-serif"&gt;xdshi&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/B&gt;, 
&lt;BR /&gt;Thanks for your response. I think my problem is not well defined earlier. 
&lt;BR /&gt;Here is my expected result for the given XML. 
&lt;BR /&gt;ENTITY_ID &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; DOB &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; POB &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;CITY &amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;COUNTRY_NAME 
&lt;BR /&gt;10011&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;12/19/1969 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; NULL &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp; &amp;nbsp;AL-KARTUM &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;SUDAN 
&lt;BR /&gt;10011&amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 12/19/1969 &amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;NULL &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp; &amp;nbsp;AL-KHARTOUM &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;SUDAN 
&lt;BR /&gt;10012 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;NULL &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;EAST LOMBOK, WEST NUSA TENGGARA, INDONESIA &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;NULL &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; NULL 
&lt;BR /&gt;The tags &amp;lt;dobs&amp;gt;, &amp;lt;pobs&amp;gt;, &amp;lt;city&amp;gt; , &amp;lt;country&amp;gt; will have multiple values. the parent loop should be&amp;nbsp; 
&lt;FONT face="Verdana, Helvetica, Arial, sans-serif"&gt;&lt;FONT size="1"&gt;&amp;lt;entity&amp;gt;&lt;/FONT&gt;&lt;/FONT&gt;&amp;nbsp; &amp;nbsp;and the child loops are independent to each other. i.e. &amp;lt;dobs&amp;gt;, &amp;lt;pobs&amp;gt;, &amp;lt;city&amp;gt; , &amp;lt;country&amp;gt; can occur 'w' times,'x' times,'y' times,'z' times. &amp;nbsp;And all the child element need not be present always. I used tXMLMap to fetch the values, but in that if I make &amp;nbsp;all the child elements as &amp;nbsp;loop element, I am not able to give the parent loop. If I give parent loop alone, I am not able to fetch all the values for child elements. 
&lt;BR /&gt;Please share your suggestions if any other component can be used to solve this problem.</description>
      <pubDate>Tue, 21 Mar 2017 04:12:58 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Reading-multiple-child-element-loop-independent-loops/m-p/2207888#M7357</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-03-21T04:12:58Z</dc:date>
    </item>
  </channel>
</rss>

