<?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 read value in complex xml file in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/How-to-read-value-in-complex-xml-file/m-p/2267295#M46240</link>
    <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;You'll also need to implement the &lt;STRONG&gt;&lt;A href="https://www.w3schools.com/xml/xml_xpath.asp" target="_blank" rel="noopener nofollow noopener noreferrer"&gt;query&lt;/A&gt;&lt;/STRONG&gt; aspect of parsing through the XML. So, in your example screen shot, to acquire the Job_Profile_ID you'll need to use something like:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;"/wd:Report_Data/wd:Report_Entry/wd: Position_group/wd:Job_Profile/wd:ID[@wd:type='Job_Profile_ID']"&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;As the Loop XPath query, to only bring back the element where the wd:type is of the type you're looking for. Workday is a notoriously complex XML structure and you may find you have to query into the same file multiple times to pull out all of the values you're after.&lt;/P&gt;</description>
    <pubDate>Thu, 18 Apr 2019 15:41:44 GMT</pubDate>
    <dc:creator>David_Beaty</dc:creator>
    <dc:date>2019-04-18T15:41:44Z</dc:date>
    <item>
      <title>How to read value in complex xml file</title>
      <link>https://community.qlik.com/t5/Talend-Studio/How-to-read-value-in-complex-xml-file/m-p/2267291#M46236</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;Somebody can help me on how to read value in complex xml file.&lt;/P&gt;&lt;P&gt;See screen short and sample of xml file that a try to read value.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Best regard&lt;/P&gt;</description>
      <pubDate>Thu, 18 Apr 2019 13:42:29 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/How-to-read-value-in-complex-xml-file/m-p/2267291#M46236</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2019-04-18T13:42:29Z</dc:date>
    </item>
    <item>
      <title>Re: How to read value in complex xml file</title>
      <link>https://community.qlik.com/t5/Talend-Studio/How-to-read-value-in-complex-xml-file/m-p/2267292#M46237</link>
      <description>&lt;P&gt;This is a sample of xml file.&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;BR /&gt;&lt;A href="https://community.qlik.com/legacyfs/online/tlnd_dw_files/0683p000009LunR"&gt;InputXML.xml&lt;/A&gt;</description>
      <pubDate>Thu, 18 Apr 2019 13:44:35 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/How-to-read-value-in-complex-xml-file/m-p/2267292#M46237</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2019-04-18T13:44:35Z</dc:date>
    </item>
    <item>
      <title>Re: How to read value in complex xml file</title>
      <link>https://community.qlik.com/t5/Talend-Studio/How-to-read-value-in-complex-xml-file/m-p/2267293#M46238</link>
      <description>&lt;P&gt;The best way to do this is to use a tFileInputXML and Xpath expressions. You can find information on the tFileInputXML component here (&lt;A href="https://help.talend.com/reader/iYcvdknuprDzYycT3WRU8w/dQGBQzM08Kw9ML1iG_Ge5g" target="_blank" rel="nofollow noopener noreferrer"&gt;https://help.talend.com/reader/iYcvdknuprDzYycT3WRU8w/dQGBQzM08Kw9ML1iG_Ge5g&lt;/A&gt;).&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;A good online tool for checking and perfecting your XPaths can be found here (&lt;A href="https://www.freeformatter.com/xpath-tester.html" target="_blank" rel="nofollow noopener noreferrer"&gt;https://www.freeformatter.com/xpath-tester.html)&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 18 Apr 2019 14:20:29 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/How-to-read-value-in-complex-xml-file/m-p/2267293#M46238</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2019-04-18T14:20:29Z</dc:date>
    </item>
    <item>
      <title>Re: How to read value in complex xml file</title>
      <link>https://community.qlik.com/t5/Talend-Studio/How-to-read-value-in-complex-xml-file/m-p/2267294#M46239</link>
      <description>&lt;P&gt;in addition to&amp;nbsp;&lt;A href="https://community.qlik.com/s/profile/005390000069RuGAAU"&gt;@rhall&lt;/A&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;a lot of time and emotions save a proper XML/JSON tools, like OxygenXML (Altova, LiquidXML) they not only allow to test XPath but also show to you XPath on the selected place in the file&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="Screen Shot 2019-04-19 at 1.55.05 AM.png" style="width: 999px;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009M4hb.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/134988i94D844EC45308A41/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009M4hb.png" alt="0683p000009M4hb.png" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 18 Apr 2019 15:06:05 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/How-to-read-value-in-complex-xml-file/m-p/2267294#M46239</guid>
      <dc:creator>vapukov</dc:creator>
      <dc:date>2019-04-18T15:06:05Z</dc:date>
    </item>
    <item>
      <title>Re: How to read value in complex xml file</title>
      <link>https://community.qlik.com/t5/Talend-Studio/How-to-read-value-in-complex-xml-file/m-p/2267295#M46240</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;You'll also need to implement the &lt;STRONG&gt;&lt;A href="https://www.w3schools.com/xml/xml_xpath.asp" target="_blank" rel="noopener nofollow noopener noreferrer"&gt;query&lt;/A&gt;&lt;/STRONG&gt; aspect of parsing through the XML. So, in your example screen shot, to acquire the Job_Profile_ID you'll need to use something like:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;"/wd:Report_Data/wd:Report_Entry/wd: Position_group/wd:Job_Profile/wd:ID[@wd:type='Job_Profile_ID']"&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;As the Loop XPath query, to only bring back the element where the wd:type is of the type you're looking for. Workday is a notoriously complex XML structure and you may find you have to query into the same file multiple times to pull out all of the values you're after.&lt;/P&gt;</description>
      <pubDate>Thu, 18 Apr 2019 15:41:44 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/How-to-read-value-in-complex-xml-file/m-p/2267295#M46240</guid>
      <dc:creator>David_Beaty</dc:creator>
      <dc:date>2019-04-18T15:41:44Z</dc:date>
    </item>
  </channel>
</rss>

