<?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 [TOS 3.0.4] problem when importing xml CDATA to mysql in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/TOS-3-0-4-problem-when-importing-xml-CDATA-to-mysql/m-p/2343428#M111176</link>
    <description>Hi,
&lt;BR /&gt;I need to import into a mysql database an xml file in which every data, numerical or textual, is inside a CDATA tag, for example:
&lt;BR /&gt; &amp;lt;product_key&amp;gt;
&lt;BR /&gt; &amp;lt;!]&amp;gt;
&lt;BR /&gt; &amp;lt;/product_key&amp;gt;
&lt;BR /&gt;and
&lt;BR /&gt;&amp;lt;station_libelle&amp;gt;
&lt;BR /&gt; &amp;lt;!]&amp;gt;
&lt;BR /&gt; &amp;lt;/station_libelle&amp;gt;
&lt;BR /&gt;I have found no good solution to do this. If the data is numerical, when I create a file xml metadata in the repository and indicate the type as numerical I will get an error at the execution of a basic job using file_xml_input and mysql_output, "wrong type". If I indicate the type as string there is no error but the CDATA is deleted and replaced by spaces and \n, so I need to clean the datas in mysql using trim and replace functions.
&lt;BR /&gt;Is there a way to do a clean import directly in Talend ?
&lt;BR /&gt;Thanks in advance for your help
&lt;BR /&gt;Jérôme</description>
    <pubDate>Sat, 16 Nov 2024 13:54:10 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2024-11-16T13:54:10Z</dc:date>
    <item>
      <title>[TOS 3.0.4] problem when importing xml CDATA to mysql</title>
      <link>https://community.qlik.com/t5/Talend-Studio/TOS-3-0-4-problem-when-importing-xml-CDATA-to-mysql/m-p/2343428#M111176</link>
      <description>Hi,
&lt;BR /&gt;I need to import into a mysql database an xml file in which every data, numerical or textual, is inside a CDATA tag, for example:
&lt;BR /&gt; &amp;lt;product_key&amp;gt;
&lt;BR /&gt; &amp;lt;!]&amp;gt;
&lt;BR /&gt; &amp;lt;/product_key&amp;gt;
&lt;BR /&gt;and
&lt;BR /&gt;&amp;lt;station_libelle&amp;gt;
&lt;BR /&gt; &amp;lt;!]&amp;gt;
&lt;BR /&gt; &amp;lt;/station_libelle&amp;gt;
&lt;BR /&gt;I have found no good solution to do this. If the data is numerical, when I create a file xml metadata in the repository and indicate the type as numerical I will get an error at the execution of a basic job using file_xml_input and mysql_output, "wrong type". If I indicate the type as string there is no error but the CDATA is deleted and replaced by spaces and \n, so I need to clean the datas in mysql using trim and replace functions.
&lt;BR /&gt;Is there a way to do a clean import directly in Talend ?
&lt;BR /&gt;Thanks in advance for your help
&lt;BR /&gt;Jérôme</description>
      <pubDate>Sat, 16 Nov 2024 13:54:10 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/TOS-3-0-4-problem-when-importing-xml-CDATA-to-mysql/m-p/2343428#M111176</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2024-11-16T13:54:10Z</dc:date>
    </item>
    <item>
      <title>Re: [TOS 3.0.4] problem when importing xml CDATA to mysql</title>
      <link>https://community.qlik.com/t5/Talend-Studio/TOS-3-0-4-problem-when-importing-xml-CDATA-to-mysql/m-p/2343429#M111177</link>
      <description>Hello 
&lt;BR /&gt; 
&lt;BLOCKQUOTE&gt; 
 &lt;TABLE border="1"&gt; 
  &lt;TBODY&gt; 
   &lt;TR&gt; 
    &lt;TD&gt;Is there a way to do a clean import directly in Talend ?&lt;/TD&gt; 
   &lt;/TR&gt; 
  &lt;/TBODY&gt; 
 &lt;/TABLE&gt; 
&lt;/BLOCKQUOTE&gt; 
&lt;BR /&gt;Set the data type as string and use the method provided by Talend, 
&lt;BR /&gt;StringHandling.TRIM(String s) 
&lt;BR /&gt;see my screenshot 
&lt;BR /&gt;Best regards 
&lt;BR /&gt; 
&lt;BR /&gt; shong</description>
      <pubDate>Wed, 24 Jun 2009 04:21:58 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/TOS-3-0-4-problem-when-importing-xml-CDATA-to-mysql/m-p/2343429#M111177</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2009-06-24T04:21:58Z</dc:date>
    </item>
    <item>
      <title>Re: [TOS 3.0.4] problem when importing xml CDATA to mysql</title>
      <link>https://community.qlik.com/t5/Talend-Studio/TOS-3-0-4-problem-when-importing-xml-CDATA-to-mysql/m-p/2343430#M111178</link>
      <description>Hi,&lt;BR /&gt;Thanks a lot for your help.&lt;BR /&gt;Best regards.&lt;BR /&gt;Jérôme</description>
      <pubDate>Wed, 24 Jun 2009 09:13:08 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/TOS-3-0-4-problem-when-importing-xml-CDATA-to-mysql/m-p/2343430#M111178</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2009-06-24T09:13:08Z</dc:date>
    </item>
  </channel>
</rss>

