<?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: How to loop and retrieve data based on attribute value of an element in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/How-to-loop-and-retrieve-data-based-on-attribute-value-of-an/m-p/2335622#M104164</link>
    <description>&lt;P&gt;Can you tell me how do I split the data based on type ?&lt;/P&gt;</description>
    <pubDate>Tue, 06 Apr 2021 02:08:09 GMT</pubDate>
    <dc:creator>KiranGer</dc:creator>
    <dc:date>2021-04-06T02:08:09Z</dc:date>
    <item>
      <title>How to loop and retrieve data based on attribute value of an element</title>
      <link>https://community.qlik.com/t5/Talend-Studio/How-to-loop-and-retrieve-data-based-on-attribute-value-of-an/m-p/2335620#M104162</link>
      <description>&lt;P&gt;I am new to Talend. I am designing a job to parse xml data. tFileInputXML -&amp;gt; tXMLMap -&amp;gt; tLogRow&lt;/P&gt;&lt;P&gt;I have an part of xml like this below. &lt;/P&gt;&lt;P&gt;&amp;lt;Items&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;lt;anyType xsi:type="Convector"&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;   &amp;lt;Name&amp;gt;Base&amp;lt;/Name&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;   &amp;lt;Weight&amp;gt;1125&amp;lt;/Weight&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;   &amp;lt;OuterDiameter&amp;gt;2&amp;lt;/OuterDiameter&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;   &amp;lt;InnerDiameter&amp;gt;0.61&amp;lt;/InnerDiameter&amp;gt;&lt;/P&gt;&lt;P&gt;  &amp;nbsp;&amp;lt;/anyType&amp;gt;&lt;/P&gt;&lt;P&gt;   &amp;nbsp;&amp;lt;anyType xsi:type="Coil"&amp;gt;&lt;/P&gt;&lt;P&gt;        &amp;lt;Status&amp;gt;Placed&amp;lt;/Status&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;   &amp;lt;Version&amp;gt;1&amp;lt;/Version&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;     &amp;lt;Type&amp;gt;Strict&amp;lt;/Type&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    &amp;lt;/anyType&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;lt;anyType xsi:type="Convector"&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;   &amp;lt;Name&amp;gt;Convector 1&amp;lt;/Name&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;   &amp;lt;Weight&amp;gt;1174&amp;lt;/Weight&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;   &amp;lt;OuterDiameter&amp;gt;2.2&amp;lt;/OuterDiameter&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;   &amp;lt;InnerDiameter&amp;gt;0.93&amp;lt;/InnerDiameter&amp;gt;&lt;/P&gt;&lt;P&gt;  &amp;nbsp;&amp;lt;/anyType&amp;gt;&lt;/P&gt;&lt;P&gt;   &amp;nbsp;&amp;lt;anyType xsi:type="Coil"&amp;gt;&lt;/P&gt;&lt;P&gt;        &amp;lt;Status&amp;gt;NotPlaced&amp;lt;/Status&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;   &amp;lt;Version&amp;gt;2&amp;lt;/Version&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;     &amp;lt;Type&amp;gt;NotStrict&amp;lt;/Type&amp;gt;&lt;/P&gt;&lt;P&gt;    &amp;lt;/anyType&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;/Items&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Could some one tell me how i can loop anyType in tXMLMap based on &lt;B&gt;xsi:type = "&lt;/B&gt;&lt;B&gt;Convector&lt;/B&gt;&lt;B&gt; " or "Coil" &lt;/B&gt;and retrieve its child values. i.e If anytype xsi:type = "Convector" then loop &lt;/P&gt;&lt;P&gt;Name, Weight , OuterDiameter, InnerDiameter values  and log in tlogRow1 and If anytype xsi:type = "Convector" then loop status, version, type values and log in tlogRow2. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for the help in advance. &lt;/P&gt;</description>
      <pubDate>Sat, 16 Nov 2024 00:19:28 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/How-to-loop-and-retrieve-data-based-on-attribute-value-of-an/m-p/2335620#M104162</guid>
      <dc:creator>KiranGer</dc:creator>
      <dc:date>2024-11-16T00:19:28Z</dc:date>
    </item>
    <item>
      <title>Re: How to loop and retrieve data based on attribute value of an element</title>
      <link>https://community.qlik.com/t5/Talend-Studio/How-to-loop-and-retrieve-data-based-on-attribute-value-of-an/m-p/2335621#M104163</link>
      <description>&lt;P&gt;From what I understand, In tXMLMap, set your sourceloop to &amp;lt;/anytype&amp;gt;, in the next tmap split the data based on the xsi:type&lt;/P&gt;</description>
      <pubDate>Mon, 05 Apr 2021 21:48:55 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/How-to-loop-and-retrieve-data-based-on-attribute-value-of-an/m-p/2335621#M104163</guid>
      <dc:creator>tnewbie</dc:creator>
      <dc:date>2021-04-05T21:48:55Z</dc:date>
    </item>
    <item>
      <title>Re: How to loop and retrieve data based on attribute value of an element</title>
      <link>https://community.qlik.com/t5/Talend-Studio/How-to-loop-and-retrieve-data-based-on-attribute-value-of-an/m-p/2335622#M104164</link>
      <description>&lt;P&gt;Can you tell me how do I split the data based on type ?&lt;/P&gt;</description>
      <pubDate>Tue, 06 Apr 2021 02:08:09 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/How-to-loop-and-retrieve-data-based-on-attribute-value-of-an/m-p/2335622#M104164</guid>
      <dc:creator>KiranGer</dc:creator>
      <dc:date>2021-04-06T02:08:09Z</dc:date>
    </item>
  </channel>
</rss>

