<?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: Fetching a XML without knowning the node names in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/Fetching-a-XML-without-knowning-the-node-names/m-p/2291070#M64286</link>
    <description>&lt;P&gt;This can be done with Xpath using the local_name() and dot keywords.&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;Screenshot of test job showing also the details of the tExtractXMLField with the Xpath:&lt;/P&gt; 
&lt;P&gt;&lt;SPAN class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="xml-job-extract-details.png" style="width: 999px;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009M4y8.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/144985i1660F96B90D6CDAE/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009M4y8.png" alt="0683p000009M4y8.png" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt; 
&lt;P&gt;Output:&lt;/P&gt; 
&lt;PRE&gt;Starting job XmlDynamicElementNames at 23:25 03/05/2019.

[statistics] connecting to socket on port 3875
[statistics] connected
.---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------.
|                                                                                        #1. tLogRow_1                                                                                        |
+-----+---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
| key | value                                                                                                                                                                                 |
+-----+---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
| xml | &amp;lt;?xml version="1.0" encoding="UTF-8"?&amp;gt;&amp;lt;root&amp;gt;&amp;lt;Capitals&amp;gt;&amp;lt;France&amp;gt;Paris&amp;lt;/France&amp;gt;&amp;lt;UK&amp;gt;London&amp;lt;/UK&amp;gt;&amp;lt;Russia&amp;gt;Moscow&amp;lt;/Russia&amp;gt;&amp;lt;Portugal&amp;gt;Lisboa&amp;lt;/Portugal&amp;gt;&amp;lt;China&amp;gt;Beijing&amp;lt;/China&amp;gt;&amp;lt;/Capitals&amp;gt;&amp;lt;/root&amp;gt; |
+-----+---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+

.------------------.
|  #1. tLogRow_2   |
+---------+--------+
| key     | value  |
+---------+--------+
| country | France |
| city    | Paris  |
+---------+--------+

.------------------.
|  #2. tLogRow_2   |
+---------+--------+
| key     | value  |
+---------+--------+
| country | UK     |
| city    | London |
+---------+--------+

.------------------.
|  #3. tLogRow_2   |
+---------+--------+
| key     | value  |
+---------+--------+
| country | Russia |
| city    | Moscow |
+---------+--------+

.--------------------.
|   #4. tLogRow_2    |
+---------+----------+
| key     | value    |
+---------+----------+
| country | Portugal |
| city    | Lisboa   |
+---------+----------+

.-------------------.
|   #5. tLogRow_2   |
+---------+---------+
| key     | value   |
+---------+---------+
| country | China   |
| city    | Beijing |
+---------+---------+

[statistics] disconnected

Job XmlDynamicElementNames ended at 23:25 03/05/2019. [exit code=0]&lt;/PRE&gt; 
&lt;P&gt;Attaching the export job zip also.&lt;/P&gt;&lt;BR /&gt;&lt;A href="https://community.qlik.com/legacyfs/online/tlnd_dw_files/0683p000009LvMk"&gt;XmlDynamicElementNames.zip&lt;/A&gt;</description>
    <pubDate>Sat, 04 May 2019 04:35:18 GMT</pubDate>
    <dc:creator>nfz11</dc:creator>
    <dc:date>2019-05-04T04:35:18Z</dc:date>
    <item>
      <title>Fetching a XML without knowning the node names</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Fetching-a-XML-without-knowning-the-node-names/m-p/2291069#M64285</link>
      <description>&lt;P&gt;Hi all,&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;I have to fetch a XML file like this one, where I don´t know previously the node names. How could I do that?&lt;/P&gt; 
&lt;P&gt;Searched all around, but no success.&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&amp;lt;?xml version="1.0" encoding="UTF-8"?&amp;gt;&lt;BR /&gt;&amp;lt;root&amp;gt;&lt;BR /&gt;&amp;lt;Capitals&amp;gt;&lt;BR /&gt;&amp;nbsp; &amp;nbsp;&amp;lt;France&amp;gt;Paris&amp;lt;/France&amp;gt;&lt;BR /&gt;&amp;nbsp; &amp;nbsp;&amp;lt;UK&amp;gt;London&amp;lt;/UK&amp;gt;&lt;BR /&gt;&amp;nbsp; &amp;nbsp;&amp;lt;Russia&amp;gt;Moscow&amp;lt;/Russia&amp;gt;&lt;BR /&gt;&amp;nbsp; &amp;nbsp;&amp;lt;Portugal&amp;gt;Lisboa&amp;lt;/Portugal&amp;gt;&lt;BR /&gt;&amp;nbsp; &amp;nbsp;&amp;lt;China&amp;gt;Beijing&amp;lt;/China&amp;gt;&lt;BR /&gt;&amp;lt;/Capitals&amp;gt;&lt;BR /&gt;&amp;lt;/root&amp;gt;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;The final result shoud be 2 columns:&lt;/P&gt; 
&lt;P&gt;France - Paris&lt;/P&gt; 
&lt;P&gt;Russia - Moscow&lt;/P&gt; 
&lt;P&gt;etc...&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;Any ideas?&lt;/P&gt; 
&lt;P&gt;Appreciate any suggestions&lt;/P&gt;</description>
      <pubDate>Fri, 03 May 2019 14:06:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Fetching-a-XML-without-knowning-the-node-names/m-p/2291069#M64285</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2019-05-03T14:06:04Z</dc:date>
    </item>
    <item>
      <title>Re: Fetching a XML without knowning the node names</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Fetching-a-XML-without-knowning-the-node-names/m-p/2291070#M64286</link>
      <description>&lt;P&gt;This can be done with Xpath using the local_name() and dot keywords.&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;Screenshot of test job showing also the details of the tExtractXMLField with the Xpath:&lt;/P&gt; 
&lt;P&gt;&lt;SPAN class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="xml-job-extract-details.png" style="width: 999px;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009M4y8.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/144985i1660F96B90D6CDAE/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009M4y8.png" alt="0683p000009M4y8.png" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt; 
&lt;P&gt;Output:&lt;/P&gt; 
&lt;PRE&gt;Starting job XmlDynamicElementNames at 23:25 03/05/2019.

[statistics] connecting to socket on port 3875
[statistics] connected
.---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------.
|                                                                                        #1. tLogRow_1                                                                                        |
+-----+---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
| key | value                                                                                                                                                                                 |
+-----+---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
| xml | &amp;lt;?xml version="1.0" encoding="UTF-8"?&amp;gt;&amp;lt;root&amp;gt;&amp;lt;Capitals&amp;gt;&amp;lt;France&amp;gt;Paris&amp;lt;/France&amp;gt;&amp;lt;UK&amp;gt;London&amp;lt;/UK&amp;gt;&amp;lt;Russia&amp;gt;Moscow&amp;lt;/Russia&amp;gt;&amp;lt;Portugal&amp;gt;Lisboa&amp;lt;/Portugal&amp;gt;&amp;lt;China&amp;gt;Beijing&amp;lt;/China&amp;gt;&amp;lt;/Capitals&amp;gt;&amp;lt;/root&amp;gt; |
+-----+---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+

.------------------.
|  #1. tLogRow_2   |
+---------+--------+
| key     | value  |
+---------+--------+
| country | France |
| city    | Paris  |
+---------+--------+

.------------------.
|  #2. tLogRow_2   |
+---------+--------+
| key     | value  |
+---------+--------+
| country | UK     |
| city    | London |
+---------+--------+

.------------------.
|  #3. tLogRow_2   |
+---------+--------+
| key     | value  |
+---------+--------+
| country | Russia |
| city    | Moscow |
+---------+--------+

.--------------------.
|   #4. tLogRow_2    |
+---------+----------+
| key     | value    |
+---------+----------+
| country | Portugal |
| city    | Lisboa   |
+---------+----------+

.-------------------.
|   #5. tLogRow_2   |
+---------+---------+
| key     | value   |
+---------+---------+
| country | China   |
| city    | Beijing |
+---------+---------+

[statistics] disconnected

Job XmlDynamicElementNames ended at 23:25 03/05/2019. [exit code=0]&lt;/PRE&gt; 
&lt;P&gt;Attaching the export job zip also.&lt;/P&gt;&lt;BR /&gt;&lt;A href="https://community.qlik.com/legacyfs/online/tlnd_dw_files/0683p000009LvMk"&gt;XmlDynamicElementNames.zip&lt;/A&gt;</description>
      <pubDate>Sat, 04 May 2019 04:35:18 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Fetching-a-XML-without-knowning-the-node-names/m-p/2291070#M64286</guid>
      <dc:creator>nfz11</dc:creator>
      <dc:date>2019-05-04T04:35:18Z</dc:date>
    </item>
  </channel>
</rss>

