<?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: tFileInputXML read a multi level XML file in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/tFileInputXML-read-a-multi-level-XML-file/m-p/2248494#M33332</link>
    <description>hi
&lt;BR /&gt;I had to change the way I read my file, because it took 1h40 to read a 60 Mo xml file !
&lt;BR /&gt;So now for each part of my file, I have a tfileInputXML, a tmap and a mysql stored procedure component. -&amp;gt; 25 minutes.
&lt;BR /&gt;I think 25 min is steel to much to read a file - 60 Mo is not a huge file - and I'm sure I'm not the only one who wants to read a complex XML file. I really need to be fast because all the process must be rollback if an error occurs.
&lt;BR /&gt;However I can't find any solution in the forum.
&lt;BR /&gt;Does anybody has an idea ?
&lt;BR /&gt;Thank you</description>
    <pubDate>Wed, 24 Nov 2010 13:21:46 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2010-11-24T13:21:46Z</dc:date>
    <item>
      <title>tFileInputXML read a multi level XML file</title>
      <link>https://community.qlik.com/t5/Talend-Studio/tFileInputXML-read-a-multi-level-XML-file/m-p/2248493#M33331</link>
      <description>hello&lt;BR /&gt;I need to read a complex XML file.&lt;BR /&gt;like this one for instance :&lt;BR /&gt;&amp;lt;root&amp;gt;&lt;BR /&gt; &amp;lt;products&amp;gt;&lt;BR /&gt;   &amp;lt;product&amp;gt;&lt;BR /&gt;      &amp;lt;name&amp;gt; n&amp;lt;/name&amp;gt;&lt;BR /&gt;      &amp;lt;price&amp;gt; 0 &amp;lt;/price&amp;gt;&lt;BR /&gt;      &amp;lt;descriptions&amp;gt;&lt;BR /&gt;            &amp;lt;desc&amp;gt; &lt;BR /&gt;                        &amp;lt;name&amp;gt;blablabla &amp;lt;/name&amp;gt;&lt;BR /&gt;                        &amp;lt;sub_desc&amp;gt;&lt;BR /&gt;                                    &amp;lt;name&amp;gt;name&amp;lt;/name&amp;gt;&lt;BR /&gt;                                    &amp;lt;value&amp;gt;val&amp;lt;/value&amp;gt;&lt;BR /&gt;                        &amp;lt;/sub_desc&amp;gt;            &lt;BR /&gt;                         &amp;lt;sub_desc&amp;gt;&lt;BR /&gt;                                    &amp;lt;name&amp;gt;name&amp;lt;/name&amp;gt;&lt;BR /&gt;                                    &amp;lt;value&amp;gt;val&amp;lt;/value&amp;gt;&lt;BR /&gt;                        &amp;lt;/sub_desc&amp;gt;&lt;BR /&gt;                       &amp;lt;sub_desc&amp;gt; &lt;BR /&gt;                          ...&lt;BR /&gt;                       &amp;lt;/sub_desc&amp;gt;                    &lt;BR /&gt;            &amp;lt;/desc&amp;gt;&lt;BR /&gt;            &amp;lt;desc&amp;gt; ...&amp;lt;/desc&amp;gt;&lt;BR /&gt;            ...&lt;BR /&gt;      &amp;lt;/descriptions&amp;gt;&lt;BR /&gt;      &lt;BR /&gt;   &amp;lt;/product&amp;gt;&lt;BR /&gt;   &amp;lt;product&amp;gt;&lt;BR /&gt;     ...&lt;BR /&gt;   &amp;lt;/product&amp;gt;&lt;BR /&gt;   ...&lt;BR /&gt; &amp;lt;/products&amp;gt;&lt;BR /&gt;&amp;lt;/root&amp;gt;&lt;BR /&gt;&lt;BR /&gt;to read this file, I use first a tFileInput XML, that select a complete product block in a string, the checkbox "with nodes" is selected.&lt;BR /&gt;then i get the first level in a tExtractXMLField, and a string "descriptions" that contains all the block &amp;lt;descriptions&amp;gt;. then I read this in a tExtractXMLField, etc etc.&lt;BR /&gt;&lt;BR /&gt;Is it the good way to read a multiple level XML file ?&lt;BR /&gt;&lt;BR /&gt;In my example, I need to insert the data from the XML file into a mysql database with stored procedures.&lt;BR /&gt;As I have no output flow from a stored proc, I use a tmap to recover the values sent in input of the sp. I made a screenshot, because it's not easy to explain !&lt;BR /&gt;&lt;BR /&gt;Thank you for your advises.</description>
      <pubDate>Sat, 16 Nov 2024 13:12:07 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/tFileInputXML-read-a-multi-level-XML-file/m-p/2248493#M33331</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2024-11-16T13:12:07Z</dc:date>
    </item>
    <item>
      <title>Re: tFileInputXML read a multi level XML file</title>
      <link>https://community.qlik.com/t5/Talend-Studio/tFileInputXML-read-a-multi-level-XML-file/m-p/2248494#M33332</link>
      <description>hi
&lt;BR /&gt;I had to change the way I read my file, because it took 1h40 to read a 60 Mo xml file !
&lt;BR /&gt;So now for each part of my file, I have a tfileInputXML, a tmap and a mysql stored procedure component. -&amp;gt; 25 minutes.
&lt;BR /&gt;I think 25 min is steel to much to read a file - 60 Mo is not a huge file - and I'm sure I'm not the only one who wants to read a complex XML file. I really need to be fast because all the process must be rollback if an error occurs.
&lt;BR /&gt;However I can't find any solution in the forum.
&lt;BR /&gt;Does anybody has an idea ?
&lt;BR /&gt;Thank you</description>
      <pubDate>Wed, 24 Nov 2010 13:21:46 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/tFileInputXML-read-a-multi-level-XML-file/m-p/2248494#M33332</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2010-11-24T13:21:46Z</dc:date>
    </item>
  </channel>
</rss>

