<?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 How to remove a specific XML tag when i am not using xpath input in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/How-to-remove-a-specific-XML-tag-when-i-am-not-using-xpath-input/m-p/2349265#M116264</link>
    <description>&lt;P&gt;i have a requirement where i am supposed to remove particular xml tag when it has a blank value. But the issue is that the source is a flat file and i am using tFileInputDelimited as the source (then tmap for transformation) and then tAdvancedXMLOutput for generating the xml.&lt;/P&gt;&lt;P&gt;i couldnt find the option to remove that specific tag anywhere.&lt;/P&gt;&lt;P&gt;If i try removing it, it removes the whole tag from the the xml even when it doesnt have a blank value.&lt;/P&gt;&lt;P&gt;any suggestions on how to do it?&lt;/P&gt;</description>
    <pubDate>Fri, 15 Nov 2024 21:41:16 GMT</pubDate>
    <dc:creator>rajanbhat67</dc:creator>
    <dc:date>2024-11-15T21:41:16Z</dc:date>
    <item>
      <title>How to remove a specific XML tag when i am not using xpath input</title>
      <link>https://community.qlik.com/t5/Talend-Studio/How-to-remove-a-specific-XML-tag-when-i-am-not-using-xpath-input/m-p/2349265#M116264</link>
      <description>&lt;P&gt;i have a requirement where i am supposed to remove particular xml tag when it has a blank value. But the issue is that the source is a flat file and i am using tFileInputDelimited as the source (then tmap for transformation) and then tAdvancedXMLOutput for generating the xml.&lt;/P&gt;&lt;P&gt;i couldnt find the option to remove that specific tag anywhere.&lt;/P&gt;&lt;P&gt;If i try removing it, it removes the whole tag from the the xml even when it doesnt have a blank value.&lt;/P&gt;&lt;P&gt;any suggestions on how to do it?&lt;/P&gt;</description>
      <pubDate>Fri, 15 Nov 2024 21:41:16 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/How-to-remove-a-specific-XML-tag-when-i-am-not-using-xpath-input/m-p/2349265#M116264</guid>
      <dc:creator>rajanbhat67</dc:creator>
      <dc:date>2024-11-15T21:41:16Z</dc:date>
    </item>
    <item>
      <title>Re: How to remove a specific XML tag when i am not using xpath input</title>
      <link>https://community.qlik.com/t5/Talend-Studio/How-to-remove-a-specific-XML-tag-when-i-am-not-using-xpath-input/m-p/2349266#M116265</link>
      <description>&lt;P&gt;Hi @Rajan Bhat​&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I would try using tXMLMap instead of tMap. &lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;On its output schema, create one column of Document type and map your XML tree in there.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;To remove the empty elements, in the mapping window, on the output you created there will be a wrench icon. Click on it and there will be an option "Create empty element". Set it to false and connect tXMLMap output to a tFileOutputRaw component (you can use a tConvertType in the middle to avoid schema incompatibility).&lt;/P&gt;</description>
      <pubDate>Wed, 14 Jun 2023 01:51:00 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/How-to-remove-a-specific-XML-tag-when-i-am-not-using-xpath-input/m-p/2349266#M116265</guid>
      <dc:creator>anselmopeixoto</dc:creator>
      <dc:date>2023-06-14T01:51:00Z</dc:date>
    </item>
    <item>
      <title>Re: How to remove a specific XML tag when i am not using xpath input</title>
      <link>https://community.qlik.com/t5/Talend-Studio/How-to-remove-a-specific-XML-tag-when-i-am-not-using-xpath-input/m-p/2349267#M116266</link>
      <description>&lt;P&gt;Hi @Anselmo Peixoto​&amp;nbsp;,&lt;/P&gt;&lt;P&gt;i did as you have mentioned. Though tFileOutputRaw wasnt giving the desired result in form of xml tags so i used tFileOutputXML but still the same issue. I am still getting that tag with blank value in the file&lt;/P&gt;</description>
      <pubDate>Wed, 14 Jun 2023 10:47:52 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/How-to-remove-a-specific-XML-tag-when-i-am-not-using-xpath-input/m-p/2349267#M116266</guid>
      <dc:creator>rajanbhat67</dc:creator>
      <dc:date>2023-06-14T10:47:52Z</dc:date>
    </item>
    <item>
      <title>Re: How to remove a specific XML tag when i am not using xpath input</title>
      <link>https://community.qlik.com/t5/Talend-Studio/How-to-remove-a-specific-XML-tag-when-i-am-not-using-xpath-input/m-p/2349268#M116267</link>
      <description>&lt;P&gt;Hi @Rajan Bhat​&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Did you disable the "create empty element" option on tXMLMap?&lt;/P&gt;&lt;P&gt;Try putting a tLogRow on tXMLMap output just to verify if this option is working as expected. If not, try mapping a null value to an element to see if it works.&lt;/P&gt;</description>
      <pubDate>Wed, 14 Jun 2023 22:41:47 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/How-to-remove-a-specific-XML-tag-when-i-am-not-using-xpath-input/m-p/2349268#M116267</guid>
      <dc:creator>anselmopeixoto</dc:creator>
      <dc:date>2023-06-14T22:41:47Z</dc:date>
    </item>
  </channel>
</rss>

