<?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 NULL instead of empty string as output from tExtractXMLField in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/NULL-instead-of-empty-string-as-output-from-tExtractXMLField/m-p/2331700#M100656</link>
    <description>&lt;P&gt;After flattening of XML-data in tExtractXMLField, all empty XML-elements are converted to empty strings.&lt;/P&gt;&lt;P&gt;It is wanted to have NULL instead of empty strings in the target database.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Do we have a parameter in Talend or another way of controlling how empty XML-elements are converted in tExtractXMLField?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;</description>
    <pubDate>Fri, 15 Nov 2024 22:23:28 GMT</pubDate>
    <dc:creator>Vlatko</dc:creator>
    <dc:date>2024-11-15T22:23:28Z</dc:date>
    <item>
      <title>NULL instead of empty string as output from tExtractXMLField</title>
      <link>https://community.qlik.com/t5/Talend-Studio/NULL-instead-of-empty-string-as-output-from-tExtractXMLField/m-p/2331700#M100656</link>
      <description>&lt;P&gt;After flattening of XML-data in tExtractXMLField, all empty XML-elements are converted to empty strings.&lt;/P&gt;&lt;P&gt;It is wanted to have NULL instead of empty strings in the target database.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Do we have a parameter in Talend or another way of controlling how empty XML-elements are converted in tExtractXMLField?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 15 Nov 2024 22:23:28 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/NULL-instead-of-empty-string-as-output-from-tExtractXMLField/m-p/2331700#M100656</guid>
      <dc:creator>Vlatko</dc:creator>
      <dc:date>2024-11-15T22:23:28Z</dc:date>
    </item>
    <item>
      <title>Re: NULL instead of empty string as output from tExtractXMLField</title>
      <link>https://community.qlik.com/t5/Talend-Studio/NULL-instead-of-empty-string-as-output-from-tExtractXMLField/m-p/2331701#M100657</link>
      <description>&lt;P&gt;There isn't a parameter to convert empty elements to NULL in tExtractXMLField.&lt;/P&gt;&lt;P&gt;A workaround is to add another tMap component to convert the empty string to "NULL" like the below : row.xxx.isEmpty()?"NULL":row4.xxx&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0695b00000Z0BFqAAN.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/151338iF06844CE6944609B/image-size/large?v=v2&amp;amp;px=999" role="button" title="0695b00000Z0BFqAAN.png" alt="0695b00000Z0BFqAAN.png" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 08 Nov 2022 02:22:48 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/NULL-instead-of-empty-string-as-output-from-tExtractXMLField/m-p/2331701#M100657</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2022-11-08T02:22:48Z</dc:date>
    </item>
    <item>
      <title>Re: NULL instead of empty string as output from tExtractXMLField</title>
      <link>https://community.qlik.com/t5/Talend-Studio/NULL-instead-of-empty-string-as-output-from-tExtractXMLField/m-p/2331702#M100658</link>
      <description>&lt;P&gt;Thank you for the answer!&lt;/P&gt;&lt;P&gt;I know that, but the problem is that we have a couple of hundreds of columns per XML-schema, and as of today we have about 100 different types of XML-schemas. It would be 15-20.000 such tests... &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 08 Nov 2022 04:24:05 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/NULL-instead-of-empty-string-as-output-from-tExtractXMLField/m-p/2331702#M100658</guid>
      <dc:creator>Vlatko</dc:creator>
      <dc:date>2022-11-08T04:24:05Z</dc:date>
    </item>
    <item>
      <title>Re: NULL instead of empty string as output from tExtractXMLField</title>
      <link>https://community.qlik.com/t5/Talend-Studio/NULL-instead-of-empty-string-as-output-from-tExtractXMLField/m-p/2331703#M100659</link>
      <description>&lt;P&gt;Another possible solution is to remove the empty XML-elements node in the XML-schema content, then tExtractXMLField will get the null value for the empty element fields&lt;/P&gt;</description>
      <pubDate>Tue, 08 Nov 2022 08:07:58 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/NULL-instead-of-empty-string-as-output-from-tExtractXMLField/m-p/2331703#M100659</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2022-11-08T08:07:58Z</dc:date>
    </item>
    <item>
      <title>Re: NULL instead of empty string as output from tExtractXMLField</title>
      <link>https://community.qlik.com/t5/Talend-Studio/NULL-instead-of-empty-string-as-output-from-tExtractXMLField/m-p/2331704#M100660</link>
      <description>&lt;P&gt;Thanks again!&lt;/P&gt;&lt;P&gt;The case is that the input will always contain all the fields from XSD schema. I.e. all XML-elements are mandatory in all types of XML Schemas that we receive. It cannot be changed.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;So, the only solution would be if we can in a safe way remove the empty XML-elements from the input string containing the XML. No doubt it's possible to write such a Regex replace expression. I can do it, but I wonder if you possibly already have done it yourself before? Do you maybe have a complete tReplace doing that? I.e. removing &amp;lt;xxx&amp;gt;&amp;lt;/xxx&amp;gt; and &amp;lt;xxx/&amp;gt; and... is there other possibilities...?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Anyway, thank you for your help, now I am at least sure that there is no parameters in Talend, and that I have to remove the empty fields from the XML before it comes to the tExtractXMLField.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Best regards&lt;/P&gt;&lt;P&gt;Vlatko&lt;/P&gt;</description>
      <pubDate>Tue, 08 Nov 2022 08:22:41 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/NULL-instead-of-empty-string-as-output-from-tExtractXMLField/m-p/2331704#M100660</guid>
      <dc:creator>Vlatko</dc:creator>
      <dc:date>2022-11-08T08:22:41Z</dc:date>
    </item>
    <item>
      <title>Re: NULL instead of empty string as output from tExtractXMLField</title>
      <link>https://community.qlik.com/t5/Talend-Studio/NULL-instead-of-empty-string-as-output-from-tExtractXMLField/m-p/2331705#M100661</link>
      <description>&lt;P&gt;Here is one possible solution:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0695b00000Z0PzYAAV.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/149330i99CFB276A3DE045B/image-size/large?v=v2&amp;amp;px=999" role="button" title="0695b00000Z0PzYAAV.png" alt="0695b00000Z0PzYAAV.png" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 08 Nov 2022 21:48:15 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/NULL-instead-of-empty-string-as-output-from-tExtractXMLField/m-p/2331705#M100661</guid>
      <dc:creator>Vlatko</dc:creator>
      <dc:date>2022-11-08T21:48:15Z</dc:date>
    </item>
    <item>
      <title>Re: NULL instead of empty string as output from tExtractXMLField</title>
      <link>https://community.qlik.com/t5/Talend-Studio/NULL-instead-of-empty-string-as-output-from-tExtractXMLField/m-p/2331706#M100662</link>
      <description>&lt;P&gt;And as text:&lt;/P&gt;&lt;P&gt;"&amp;lt;\\s*[^&amp;gt;/]*&amp;gt;((&amp;amp;nbsp;)*|\\s*)&amp;lt;/\\s*[^&amp;gt;&amp;lt;/]*&amp;gt;"&lt;/P&gt;&lt;P&gt;"&amp;lt;.*/&amp;gt;"&lt;/P&gt;</description>
      <pubDate>Tue, 08 Nov 2022 21:49:09 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/NULL-instead-of-empty-string-as-output-from-tExtractXMLField/m-p/2331706#M100662</guid>
      <dc:creator>Vlatko</dc:creator>
      <dc:date>2022-11-08T21:49:09Z</dc:date>
    </item>
  </channel>
</rss>

