<?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 Problem with XPath query (pick value based on attribute in multi element) in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/Problem-with-XPath-query-pick-value-based-on-attribute-in-multi/m-p/2332057#M100976</link>
    <description>&lt;P&gt;Hi All;&lt;/P&gt; 
&lt;P&gt;I'm facing problem with XPath query in tFileInputXML, when I'm using query with&amp;nbsp;element number defined:&lt;/P&gt; 
&lt;P&gt;/Tracks/SegmentTrack[1]/Value&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;It is working but when I use conditional:&lt;/P&gt; 
&lt;P&gt;/Tracks/SegmentTrack[Value/@type='magnetic']/Value&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;It returns null, I've tried with \" instead of ', but still same result. I've tested query online and it is working correctly, site used:&lt;/P&gt; 
&lt;P&gt;&lt;A href="https://www.freeformatter.com/xpath-tester.html#ad-output" target="_blank" rel="nofollow noopener noreferrer"&gt;https://www.freeformatter.com/xpath-tester.html#ad-output&lt;/A&gt;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;Am I doing something wrong or this kind of queries are not supported?&lt;/P&gt; 
&lt;P&gt;If not supported, do you have any suggestion without heavy string parsing?&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;All suggestions really appreciated.&lt;/P&gt; 
&lt;P&gt;Thank you very much&lt;/P&gt; 
&lt;P&gt;BR/Artur&lt;/P&gt;</description>
    <pubDate>Thu, 17 May 2018 09:23:55 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2018-05-17T09:23:55Z</dc:date>
    <item>
      <title>Problem with XPath query (pick value based on attribute in multi element)</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Problem-with-XPath-query-pick-value-based-on-attribute-in-multi/m-p/2332057#M100976</link>
      <description>&lt;P&gt;Hi All;&lt;/P&gt; 
&lt;P&gt;I'm facing problem with XPath query in tFileInputXML, when I'm using query with&amp;nbsp;element number defined:&lt;/P&gt; 
&lt;P&gt;/Tracks/SegmentTrack[1]/Value&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;It is working but when I use conditional:&lt;/P&gt; 
&lt;P&gt;/Tracks/SegmentTrack[Value/@type='magnetic']/Value&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;It returns null, I've tried with \" instead of ', but still same result. I've tested query online and it is working correctly, site used:&lt;/P&gt; 
&lt;P&gt;&lt;A href="https://www.freeformatter.com/xpath-tester.html#ad-output" target="_blank" rel="nofollow noopener noreferrer"&gt;https://www.freeformatter.com/xpath-tester.html#ad-output&lt;/A&gt;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;Am I doing something wrong or this kind of queries are not supported?&lt;/P&gt; 
&lt;P&gt;If not supported, do you have any suggestion without heavy string parsing?&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;All suggestions really appreciated.&lt;/P&gt; 
&lt;P&gt;Thank you very much&lt;/P&gt; 
&lt;P&gt;BR/Artur&lt;/P&gt;</description>
      <pubDate>Thu, 17 May 2018 09:23:55 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Problem-with-XPath-query-pick-value-based-on-attribute-in-multi/m-p/2332057#M100976</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-05-17T09:23:55Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with XPath query (pick value based on attribute in multi element)</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Problem-with-XPath-query-pick-value-based-on-attribute-in-multi/m-p/2332058#M100977</link>
      <description>&lt;P&gt;&lt;A href="https://community.qlik.com/s/profile/0053p000007LOP3AAO"&gt;@GnuS&lt;/A&gt;,try with below one should reslove.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;"/Tracks/SegmentTrack[Value/@type='magnetic']"&lt;/P&gt;</description>
      <pubDate>Thu, 17 May 2018 09:52:45 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Problem-with-XPath-query-pick-value-based-on-attribute-in-multi/m-p/2332058#M100977</guid>
      <dc:creator>manodwhb</dc:creator>
      <dc:date>2018-05-17T09:52:45Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with XPath query (pick value based on attribute in multi element)</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Problem-with-XPath-query-pick-value-based-on-attribute-in-multi/m-p/2332059#M100978</link>
      <description>&lt;P&gt;&lt;SPAN class=""&gt;Hi;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN class=""&gt;&lt;A href="https://community.qlik.com/s/profile/0053p000007LKmJAAW"&gt;@manodwhb&lt;/A&gt;&amp;nbsp;It is same, NULL, besides the fact that I need Value not whole element.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN class=""&gt;BR/Artur&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 17 May 2018 10:00:31 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Problem-with-XPath-query-pick-value-based-on-attribute-in-multi/m-p/2332059#M100978</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-05-17T10:00:31Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with XPath query (pick value based on attribute in multi element)</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Problem-with-XPath-query-pick-value-based-on-attribute-in-multi/m-p/2332060#M100979</link>
      <description>&lt;P&gt;&lt;A href="https://community.qlik.com/s/profile/0053p000007LOP3AAO"&gt;@GnuS&lt;/A&gt;,check the txmlinput settings,since i was able to get wth below&lt;SPAN class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Untitled.png" style="width: 780px;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009LxaP.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/145901i79417AA5015B8960/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009LxaP.png" alt="0683p000009LxaP.png" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;SPAN class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Untitled.png" style="width: 631px;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009LwxO.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/140309iE17A04A37A7A9900/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009LwxO.png" alt="0683p000009LwxO.png" /&gt;&lt;/span&gt;&lt;/SPAN&gt;.&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 17 May 2018 12:28:16 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Problem-with-XPath-query-pick-value-based-on-attribute-in-multi/m-p/2332060#M100979</guid>
      <dc:creator>manodwhb</dc:creator>
      <dc:date>2018-05-17T12:28:16Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with XPath query (pick value based on attribute in multi element)</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Problem-with-XPath-query-pick-value-based-on-attribute-in-multi/m-p/2332061#M100980</link>
      <description>&lt;P&gt;Hi;&lt;/P&gt;
&lt;P&gt;I have to dig a bit more but you are correct it is working (real XML is bigger and cannot share it).&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thank you very much for your time and help.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;BR/Artur&lt;/P&gt;</description>
      <pubDate>Thu, 17 May 2018 13:04:48 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Problem-with-XPath-query-pick-value-based-on-attribute-in-multi/m-p/2332061#M100980</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-05-17T13:04:48Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with XPath query (pick value based on attribute in multi element)</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Problem-with-XPath-query-pick-value-based-on-attribute-in-multi/m-p/2332062#M100981</link>
      <description>&lt;P&gt;Hi All;&lt;/P&gt;&lt;P&gt;I hope it will be helpful for somebody, I've found the reason of my problem,&amp;nbsp;XML which I'm parsing is actually double loop (example was a cut), my loop is on LEVEL_A because I want to have records per it, and searching on&amp;nbsp;&lt;SPAN&gt;SegmentTrack will not work, it will simply pickup first one, that's it and will not iterate through&amp;nbsp;others to find needed record. What is confusing is that online parsers does work on second loop searches. Below XML with representation of my XML.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;FONT size="2"&gt;&amp;lt;LEVEL_As&amp;gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT size="2"&gt;&amp;nbsp; &amp;lt;LEVEL_A seq=1&amp;gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT size="2"&gt;&amp;nbsp;&amp;lt;Tracks&amp;gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT size="2"&gt;&amp;nbsp; &amp;nbsp;&amp;lt;SegmentTrack&amp;gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT size="2"&gt;&amp;nbsp; &amp;nbsp;&amp;lt;Value type="true" unit="deg"&amp;gt;341&amp;lt;/Value&amp;gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT size="2"&gt;&amp;nbsp; &amp;nbsp;&amp;lt;/SegmentTrack&amp;gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT size="2"&gt;&amp;nbsp; &amp;nbsp;&amp;lt;SegmentTrack&amp;gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT size="2"&gt;&amp;nbsp; &amp;nbsp;&amp;lt;Value type="magnetic" unit="deg"&amp;gt;338&amp;lt;/Value&amp;gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT size="2"&gt;&amp;nbsp; &amp;nbsp;&amp;lt;/SegmentTrack&amp;gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT size="2"&gt;&amp;nbsp; &amp;nbsp;&amp;lt;/Tracks&amp;gt; &amp;nbsp;&amp;nbsp;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT size="2"&gt;&lt;SPAN&gt;&amp;nbsp; &amp;lt;/LEVEL_A&amp;gt;&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT size="2"&gt;&lt;SPAN&gt;&amp;lt;Tracks&amp;gt;&lt;BR /&gt;&amp;nbsp; &amp;nbsp;&amp;lt;SegmentTrack&amp;gt;&lt;BR /&gt;&amp;nbsp; &amp;nbsp;&amp;lt;Value type="true" unit="deg"&amp;gt;341&amp;lt;/Value&amp;gt;&lt;BR /&gt;&amp;nbsp; &amp;nbsp;&amp;lt;/SegmentTrack&amp;gt;&lt;BR /&gt;&amp;nbsp; &amp;nbsp;&amp;lt;SegmentTrack&amp;gt;&lt;BR /&gt;&amp;nbsp; &amp;nbsp;&amp;lt;Value type="magnetic" unit="deg"&amp;gt;338&amp;lt;/Value&amp;gt;&lt;BR /&gt;&amp;nbsp; &amp;nbsp;&amp;lt;/SegmentTrack&amp;gt;&lt;BR /&gt;&amp;nbsp; &amp;nbsp;&amp;lt;/Tracks&amp;gt; &amp;nbsp;&amp;nbsp;&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT size="2"&gt;&amp;nbsp; &amp;lt;LEVEL_A seq=2&amp;gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT size="2"&gt;&lt;SPAN&gt;&amp;nbsp; &amp;lt;/LEVEL_A&amp;gt;&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT size="2"&gt;&lt;SPAN&gt;...&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT size="2"&gt;&amp;nbsp; &amp;lt;LEVEL_A seq=N&amp;gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT size="2"&gt;&amp;lt;Tracks&amp;gt;&lt;BR /&gt;&amp;nbsp; &amp;nbsp;&amp;lt;SegmentTrack&amp;gt;&lt;BR /&gt;&amp;nbsp; &amp;nbsp;&amp;lt;Value type="true" unit="deg"&amp;gt;341&amp;lt;/Value&amp;gt;&lt;BR /&gt;&amp;nbsp; &amp;nbsp;&amp;lt;/SegmentTrack&amp;gt;&lt;BR /&gt;&amp;nbsp; &amp;nbsp;&amp;lt;SegmentTrack&amp;gt;&lt;BR /&gt;&amp;nbsp; &amp;nbsp;&amp;lt;Value type="magnetic" unit="deg"&amp;gt;338&amp;lt;/Value&amp;gt;&lt;BR /&gt;&amp;nbsp; &amp;nbsp;&amp;lt;/SegmentTrack&amp;gt;&lt;BR /&gt;&amp;nbsp; &amp;nbsp;&amp;lt;/Tracks&amp;gt; &amp;nbsp;&amp;nbsp;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT size="2"&gt;&lt;SPAN&gt;&amp;nbsp; &amp;lt;/LEVEL_A&amp;gt;&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT size="2"&gt;&lt;SPAN&gt;&amp;nbsp;&amp;lt;/LEVEL_As&amp;gt;&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 18 May 2018 08:25:46 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Problem-with-XPath-query-pick-value-based-on-attribute-in-multi/m-p/2332062#M100981</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-05-18T08:25:46Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with XPath query (pick value based on attribute in multi element)</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Problem-with-XPath-query-pick-value-based-on-attribute-in-multi/m-p/2332063#M100982</link>
      <description>&lt;P&gt;Hello Sir,&lt;/P&gt;&lt;P&gt;I am new to XML and I can't actually, I also got the same error(Xpath query lost).&lt;/P&gt;&lt;P&gt;I am attaching the XML file in this message.&lt;/P&gt;</description>
      <pubDate>Wed, 17 Aug 2022 03:45:55 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Problem-with-XPath-query-pick-value-based-on-attribute-in-multi/m-p/2332063#M100982</guid>
      <dc:creator>Ashwin_Ramdass_007</dc:creator>
      <dc:date>2022-08-17T03:45:55Z</dc:date>
    </item>
  </channel>
</rss>

