<?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 Removing header from a Document variable in Talend job in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/Removing-header-from-a-Document-variable-in-Talend-job/m-p/2312794#M83708</link>
    <description>&lt;P&gt;I have an XML stored in a Document type variable in Talend job.&lt;/P&gt;
&lt;PRE&gt;&amp;lt;?xml version="1.0" encoding="UTF-8"?&amp;gt;
&amp;lt;ORDER&amp;gt;&amp;lt;HEAD&amp;gt;&amp;lt;DOC_STATUS&amp;gt;...&amp;lt;/DOC_STATUS&amp;gt;&amp;lt;/HEAD&amp;gt;&amp;lt;/ORDER&amp;gt;

&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;I convert it with the tConvertType to String but I have header that I dont need left:&lt;BR /&gt;&amp;lt;?xml version="1.0" encoding="UTF-8"?&amp;gt;&lt;BR /&gt;&lt;BR /&gt;What is the best way to remove this above in Talend?&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Wed, 05 Jul 2017 06:48:21 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2017-07-05T06:48:21Z</dc:date>
    <item>
      <title>Removing header from a Document variable in Talend job</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Removing-header-from-a-Document-variable-in-Talend-job/m-p/2312794#M83708</link>
      <description>&lt;P&gt;I have an XML stored in a Document type variable in Talend job.&lt;/P&gt;
&lt;PRE&gt;&amp;lt;?xml version="1.0" encoding="UTF-8"?&amp;gt;
&amp;lt;ORDER&amp;gt;&amp;lt;HEAD&amp;gt;&amp;lt;DOC_STATUS&amp;gt;...&amp;lt;/DOC_STATUS&amp;gt;&amp;lt;/HEAD&amp;gt;&amp;lt;/ORDER&amp;gt;

&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;I convert it with the tConvertType to String but I have header that I dont need left:&lt;BR /&gt;&amp;lt;?xml version="1.0" encoding="UTF-8"?&amp;gt;&lt;BR /&gt;&lt;BR /&gt;What is the best way to remove this above in Talend?&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 05 Jul 2017 06:48:21 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Removing-header-from-a-Document-variable-in-Talend-job/m-p/2312794#M83708</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-07-05T06:48:21Z</dc:date>
    </item>
    <item>
      <title>Re: Removing header from a Document variable in Talend job</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Removing-header-from-a-Document-variable-in-Talend-job/m-p/2312795#M83709</link>
      <description>Try yourString.replaceAll("^&amp;lt;\?xml.*\?&amp;gt;", "")</description>
      <pubDate>Wed, 05 Jul 2017 07:46:46 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Removing-header-from-a-Document-variable-in-Talend-job/m-p/2312795#M83709</guid>
      <dc:creator>TRF</dc:creator>
      <dc:date>2017-07-05T07:46:46Z</dc:date>
    </item>
    <item>
      <title>Re: Removing header from a Document variable in Talend job</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Removing-header-from-a-Document-variable-in-Talend-job/m-p/2312796#M83710</link>
      <description>Hi TRF,&lt;BR /&gt;I try your suggestion, but i got a bug.&lt;BR /&gt;Bellow, code works for me:&lt;BR /&gt;&lt;BR /&gt;yourString.replaceAll("\\&amp;lt;\\?xml(.+?)\\?\\&amp;gt;", "")&lt;BR /&gt;&lt;BR /&gt;Ibrahim</description>
      <pubDate>Tue, 24 Apr 2018 09:33:40 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Removing-header-from-a-Document-variable-in-Talend-job/m-p/2312796#M83710</guid>
      <dc:creator>idembel2</dc:creator>
      <dc:date>2018-04-24T09:33:40Z</dc:date>
    </item>
  </channel>
</rss>

