<?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>question Nifi:How to remove xml tag from xml response data? in Archives of Support Questions (Read Only)</title>
    <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Nifi-How-to-remove-xml-tag-from-xml-response-data/m-p/197570#M68303</link>
    <description>&lt;P&gt;I want to replace &lt;CODE&gt;&amp;lt;?xml version="1.0" encoding="utf-8"?&amp;gt;&lt;/CODE&gt; tag by &lt;CODE&gt;&amp;lt;DailyData&amp;gt;&amp;lt;/DailyDate&amp;gt;&lt;/CODE&gt;&lt;/P&gt;&lt;P&gt;I used to replace text nifi processor with this search value:&lt;CODE&gt;^&amp;lt;[^&amp;gt;]+&amp;gt;(.*)&amp;lt;\/\w+&amp;gt;$&lt;/CODE&gt; and I put replace value like this in replace value &lt;CODE&gt;&amp;lt;DailyData&amp;gt;$1&amp;lt;/DailyData&amp;gt;&lt;/CODE&gt; but I got error like this inside xml file:&lt;/P&gt;&lt;BLOCKQUOTE&gt;
&lt;P&gt;This page contains the following errors:&lt;/P&gt;&lt;P&gt;error on line 1 at column 4081: XML declaration allowed only at the start of the document Below is a rendering of the page up to the first error.&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;what should I change?&lt;/P&gt;</description>
    <pubDate>Wed, 20 Sep 2017 01:37:36 GMT</pubDate>
    <dc:creator>salome_tkhilais</dc:creator>
    <dc:date>2017-09-20T01:37:36Z</dc:date>
    <item>
      <title>Nifi:How to remove xml tag from xml response data?</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Nifi-How-to-remove-xml-tag-from-xml-response-data/m-p/197570#M68303</link>
      <description>&lt;P&gt;I want to replace &lt;CODE&gt;&amp;lt;?xml version="1.0" encoding="utf-8"?&amp;gt;&lt;/CODE&gt; tag by &lt;CODE&gt;&amp;lt;DailyData&amp;gt;&amp;lt;/DailyDate&amp;gt;&lt;/CODE&gt;&lt;/P&gt;&lt;P&gt;I used to replace text nifi processor with this search value:&lt;CODE&gt;^&amp;lt;[^&amp;gt;]+&amp;gt;(.*)&amp;lt;\/\w+&amp;gt;$&lt;/CODE&gt; and I put replace value like this in replace value &lt;CODE&gt;&amp;lt;DailyData&amp;gt;$1&amp;lt;/DailyData&amp;gt;&lt;/CODE&gt; but I got error like this inside xml file:&lt;/P&gt;&lt;BLOCKQUOTE&gt;
&lt;P&gt;This page contains the following errors:&lt;/P&gt;&lt;P&gt;error on line 1 at column 4081: XML declaration allowed only at the start of the document Below is a rendering of the page up to the first error.&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;what should I change?&lt;/P&gt;</description>
      <pubDate>Wed, 20 Sep 2017 01:37:36 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Nifi-How-to-remove-xml-tag-from-xml-response-data/m-p/197570#M68303</guid>
      <dc:creator>salome_tkhilais</dc:creator>
      <dc:date>2017-09-20T01:37:36Z</dc:date>
    </item>
    <item>
      <title>Re: Nifi:How to remove xml tag from xml response data?</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Nifi-How-to-remove-xml-tag-from-xml-response-data/m-p/197571#M68304</link>
      <description>&lt;P&gt;&lt;A rel="user" href="https://community.cloudera.com/users/30155/salometkhilaishvili.html" nodeid="30155" target="_blank"&gt;@sally sally&lt;/A&gt;, can you make use of below search property &lt;BR /&gt;&lt;/P&gt;&lt;PRE&gt;^&amp;lt;[^&amp;gt;]+&amp;gt;(.*)\&amp;lt;\/\?.*\&amp;gt;$ &lt;/PRE&gt;&lt;P&gt;&lt;STRONG&gt;Replacetext Configs:-&lt;BR /&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="40419-replacetext-regex.png" style="width: 634px;"&gt;&lt;img src="https://community.cloudera.com/t5/image/serverpage/image-id/17832i6EAC737B67CA8EE8/image-size/medium?v=v2&amp;amp;px=400" role="button" title="40419-replacetext-regex.png" alt="40419-replacetext-regex.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Input:-&lt;/STRONG&gt;&lt;BR /&gt;&lt;/P&gt;&lt;PRE&gt;&amp;lt;?xml version="1.0" encoding="utf-8"?&amp;gt;abc&amp;lt;/?xml version="1.0" encoding="utf-8"?&amp;gt;&lt;/PRE&gt;&lt;STRONG&gt;Output:-&lt;/STRONG&gt;&lt;BR /&gt;&lt;PRE&gt;&amp;lt;DailyData&amp;gt;abc&amp;lt;/DailyData&amp;gt;&lt;/PRE&gt;</description>
      <pubDate>Sun, 18 Aug 2019 06:16:45 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Nifi-How-to-remove-xml-tag-from-xml-response-data/m-p/197571#M68304</guid>
      <dc:creator>Shu_ashu</dc:creator>
      <dc:date>2019-08-18T06:16:45Z</dc:date>
    </item>
  </channel>
</rss>

