<?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 Re: How can I remove XML Tag Name attributes in NiFi? in Support Questions</title>
    <link>https://community.cloudera.com/t5/Support-Questions/How-can-I-remove-XML-Tag-Name-attributes-in-NiFi/m-p/318846#M227557</link>
    <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.cloudera.com/t5/user/viewprofilepage/user-id/35454"&gt;@MattWho&lt;/a&gt;,&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Apologies as I made a mistake on the example. The example should be as follow:&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Input:&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;lt;particular&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp;&amp;lt;name&amp;gt;Nicholas&amp;lt;/name&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp;&amp;lt;height unit = "meter"&amp;gt;183&amp;lt;/height&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp;&amp;lt;weight unit = "kilogram" unit = "lb"&amp;gt;75&amp;lt;/weight&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;lt;/particular&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;lt;particular&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp;&amp;lt;name&amp;gt;Debbie&amp;lt;/name&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp;&amp;lt;height unit = "meter"&amp;gt;163&amp;lt;/height&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp;&amp;lt;weight unit = "kilogram" unit = "lb"&amp;gt;45&amp;lt;/weight&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;lt;/particular&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Output:&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;lt;particular&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp;&amp;lt;name&amp;gt;Nicholas&amp;lt;/name&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp;&amp;lt;height&amp;gt;183&amp;lt;/height&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp;&amp;lt;weight&amp;gt;75&amp;lt;/weight&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;lt;/particular&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;lt;particular&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp;&amp;lt;name&amp;gt;Debbie&amp;lt;/name&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp;&amp;lt;height&amp;gt;163&amp;lt;/height&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp;&amp;lt;weight&amp;gt;45&amp;lt;/weight&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;lt;/particular&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Are there some ways that NiFi processor could remove the attributes (unit or etc..) inside the XML tag name as mention in the example above? It will be a great help if there is an example with internal processor configuration shown and explanation.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Appreciate your help.&amp;nbsp;Thanks.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Thu, 17 Jun 2021 02:09:33 GMT</pubDate>
    <dc:creator>techNerd</dc:creator>
    <dc:date>2021-06-17T02:09:33Z</dc:date>
    <item>
      <title>How can I remove XML Tag Name attributes in NiFi?</title>
      <link>https://community.cloudera.com/t5/Support-Questions/How-can-I-remove-XML-Tag-Name-attributes-in-NiFi/m-p/318752#M227526</link>
      <description>&lt;P&gt;Hi,&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;is there some way that nifi could remove the attributes inside the XML tag name? Please advise with some example to help me. Appreciate. Thanks&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Example:&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;lt;particular&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp;&amp;lt;name&amp;gt;Nicholas&amp;lt;/name&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp;&amp;lt;height&amp;gt;183&amp;lt;/height&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp;&amp;lt;weight&amp;gt;75&amp;lt;/weight&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;lt;/particular&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;lt;particular&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp;&amp;lt;name&amp;gt;Debbie&amp;lt;/name&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp;&amp;lt;height163&amp;lt;/height&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp;&amp;lt;weight&amp;gt;45&amp;lt;/weight&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;lt;/particular&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;to something like:&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;lt;particular&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp;&amp;lt;name&amp;gt;Nicholas&amp;lt;/name&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp;&amp;lt;height unit = "meter"&amp;gt;183&amp;lt;/height&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp;&amp;lt;weight unit = "kilogram" unit = "lb"&amp;gt;75&amp;lt;/weight&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;lt;/particular&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;lt;particular&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp;&amp;lt;name&amp;gt;Debbie&amp;lt;/name&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp;&amp;lt;height unit = "meter"&amp;gt;163&amp;lt;/height&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp;&amp;lt;weight unit = "kilogram" unit = "lb"&amp;gt;45&amp;lt;/weight&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;lt;/particular&amp;gt;&lt;/P&gt;</description>
      <pubDate>Wed, 16 Jun 2021 06:37:35 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/How-can-I-remove-XML-Tag-Name-attributes-in-NiFi/m-p/318752#M227526</guid>
      <dc:creator>techNerd</dc:creator>
      <dc:date>2021-06-16T06:37:35Z</dc:date>
    </item>
    <item>
      <title>Re: How can I remove XML Tag Name attributes in NiFi?</title>
      <link>https://community.cloudera.com/t5/Support-Questions/How-can-I-remove-XML-Tag-Name-attributes-in-NiFi/m-p/318801#M227548</link>
      <description>&lt;P&gt;&lt;a href="https://community.cloudera.com/t5/user/viewprofilepage/user-id/85077"&gt;@techNerd&lt;/a&gt;&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;I am looking at your example and am not clear on what your are "removing"?&lt;BR /&gt;looks like you are adding text to your example.&lt;BR /&gt;&lt;BR /&gt;Thanks,&lt;/P&gt;&lt;P&gt;Matt&lt;/P&gt;</description>
      <pubDate>Wed, 16 Jun 2021 13:26:24 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/How-can-I-remove-XML-Tag-Name-attributes-in-NiFi/m-p/318801#M227548</guid>
      <dc:creator>MattWho</dc:creator>
      <dc:date>2021-06-16T13:26:24Z</dc:date>
    </item>
    <item>
      <title>Re: How can I remove XML Tag Name attributes in NiFi?</title>
      <link>https://community.cloudera.com/t5/Support-Questions/How-can-I-remove-XML-Tag-Name-attributes-in-NiFi/m-p/318846#M227557</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.cloudera.com/t5/user/viewprofilepage/user-id/35454"&gt;@MattWho&lt;/a&gt;,&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Apologies as I made a mistake on the example. The example should be as follow:&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Input:&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;lt;particular&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp;&amp;lt;name&amp;gt;Nicholas&amp;lt;/name&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp;&amp;lt;height unit = "meter"&amp;gt;183&amp;lt;/height&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp;&amp;lt;weight unit = "kilogram" unit = "lb"&amp;gt;75&amp;lt;/weight&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;lt;/particular&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;lt;particular&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp;&amp;lt;name&amp;gt;Debbie&amp;lt;/name&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp;&amp;lt;height unit = "meter"&amp;gt;163&amp;lt;/height&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp;&amp;lt;weight unit = "kilogram" unit = "lb"&amp;gt;45&amp;lt;/weight&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;lt;/particular&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Output:&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;lt;particular&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp;&amp;lt;name&amp;gt;Nicholas&amp;lt;/name&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp;&amp;lt;height&amp;gt;183&amp;lt;/height&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp;&amp;lt;weight&amp;gt;75&amp;lt;/weight&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;lt;/particular&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;lt;particular&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp;&amp;lt;name&amp;gt;Debbie&amp;lt;/name&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp;&amp;lt;height&amp;gt;163&amp;lt;/height&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp;&amp;lt;weight&amp;gt;45&amp;lt;/weight&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;lt;/particular&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Are there some ways that NiFi processor could remove the attributes (unit or etc..) inside the XML tag name as mention in the example above? It will be a great help if there is an example with internal processor configuration shown and explanation.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Appreciate your help.&amp;nbsp;Thanks.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 17 Jun 2021 02:09:33 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/How-can-I-remove-XML-Tag-Name-attributes-in-NiFi/m-p/318846#M227557</guid>
      <dc:creator>techNerd</dc:creator>
      <dc:date>2021-06-17T02:09:33Z</dc:date>
    </item>
    <item>
      <title>Re: How can I remove XML Tag Name attributes in NiFi?</title>
      <link>https://community.cloudera.com/t5/Support-Questions/How-can-I-remove-XML-Tag-Name-attributes-in-NiFi/m-p/318878#M227575</link>
      <description>&lt;P&gt;&lt;a href="https://community.cloudera.com/t5/user/viewprofilepage/user-id/85077"&gt;@techNerd&lt;/a&gt;&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;Based on yoru example, you can actually modify your XML using the ReplaceText [1] processor.&lt;BR /&gt;The processor can be configured with Java regex that would match on the string you want to remove and the replacement value would be set to an empty string.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="MattWho_0-1623937282966.png" style="width: 400px;"&gt;&lt;img src="https://community.cloudera.com/t5/image/serverpage/image-id/31578i7D5D99B4B82948D5/image-size/medium?v=v2&amp;amp;px=400" role="button" title="MattWho_0-1623937282966.png" alt="MattWho_0-1623937282966.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Your regex pattern in this case would need to match on (don't forget the spaces):&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;( unit = ".*?")&lt;/LI-CODE&gt;&lt;P&gt;The parenthesis mark the java regex capture group.&lt;BR /&gt;.*? is a non greedy match on any character for zero or more characters until the very next quote.&amp;nbsp; This allows this to match on any variety of unit strings (&amp;nbsp;&lt;SPAN&gt;meter,&amp;nbsp;kilogram, and lb) from your example&lt;BR /&gt;&lt;BR /&gt;This will result in the following:&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;&amp;lt;particular&amp;gt;
   &amp;lt;name&amp;gt;Nicholas&amp;lt;/name&amp;gt;
   &amp;lt;height unit = "meter"&amp;gt;183&amp;lt;/height&amp;gt;
   &amp;lt;weight unit = "kilogram" unit = "lb"&amp;gt;75&amp;lt;/weight&amp;gt;
&amp;lt;/particular&amp;gt;
&amp;lt;particular&amp;gt;
   &amp;lt;name&amp;gt;Debbie&amp;lt;/name&amp;gt;
   &amp;lt;height unit = "meter"&amp;gt;163&amp;lt;/height&amp;gt;
   &amp;lt;weight unit = "kilogram" unit = "lb"&amp;gt;45&amp;lt;/weight&amp;gt;
&amp;lt;/particular&amp;gt;&lt;/LI-CODE&gt;&lt;P&gt;&lt;SPAN&gt;being converted to:&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;&amp;lt;particular&amp;gt;
   &amp;lt;name&amp;gt;Nicholas&amp;lt;/name&amp;gt;
   &amp;lt;height&amp;gt;183&amp;lt;/height&amp;gt;
   &amp;lt;weight&amp;gt;75&amp;lt;/weight&amp;gt;
&amp;lt;/particular&amp;gt;
&amp;lt;particular&amp;gt;
   &amp;lt;name&amp;gt;Debbie&amp;lt;/name&amp;gt;
   &amp;lt;height&amp;gt;163&amp;lt;/height&amp;gt;
   &amp;lt;weight&amp;gt;45&amp;lt;/weight&amp;gt;
&amp;lt;/particular&amp;gt;&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;[1]&amp;nbsp;&lt;A href="https://nifi.apache.org/docs/nifi-docs/components/org.apache.nifi/nifi-standard-nar/1.13.2/org.apache.nifi.processors.standard.ReplaceText/index.html" target="_blank"&gt;https://nifi.apache.org/docs/nifi-docs/components/org.apache.nifi/nifi-standard-nar/1.13.2/org.apache.nifi.processors.standard.ReplaceText/index.html&lt;/A&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;BR /&gt;&lt;/SPAN&gt;If you found this addressed your query, please take a moment to login and click "Accept" on this solution.&lt;BR /&gt;Thank you,&lt;/P&gt;&lt;P&gt;Matt&lt;/P&gt;</description>
      <pubDate>Thu, 17 Jun 2021 13:50:41 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/How-can-I-remove-XML-Tag-Name-attributes-in-NiFi/m-p/318878#M227575</guid>
      <dc:creator>MattWho</dc:creator>
      <dc:date>2021-06-17T13:50:41Z</dc:date>
    </item>
    <item>
      <title>Re: How can I remove XML Tag Name attributes in NiFi?</title>
      <link>https://community.cloudera.com/t5/Support-Questions/How-can-I-remove-XML-Tag-Name-attributes-in-NiFi/m-p/318900#M227590</link>
      <description>&lt;P&gt;Hi &lt;a href="https://community.cloudera.com/t5/user/viewprofilepage/user-id/35454"&gt;@MattWho&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks for your help. Appreciate.&lt;/P&gt;</description>
      <pubDate>Fri, 18 Jun 2021 03:06:14 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/How-can-I-remove-XML-Tag-Name-attributes-in-NiFi/m-p/318900#M227590</guid>
      <dc:creator>techNerd</dc:creator>
      <dc:date>2021-06-18T03:06:14Z</dc:date>
    </item>
    <item>
      <title>Re: How can I remove XML Tag Name attributes in NiFi?</title>
      <link>https://community.cloudera.com/t5/Support-Questions/How-can-I-remove-XML-Tag-Name-attributes-in-NiFi/m-p/321732#M228542</link>
      <description>&lt;P&gt;Maybe a TransformXml with this XSLT might be more future proof:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;&amp;lt;xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform"&amp;gt;
  &amp;lt;xsl:output omit-xml-declaration="yes" indent="yes"/&amp;gt;
  &amp;lt;xsl:strip-space elements="*"/&amp;gt;
  &amp;lt;xsl:template match="node()"&amp;gt;
    &amp;lt;xsl:copy&amp;gt;
      &amp;lt;xsl:apply-templates /&amp;gt;
    &amp;lt;/xsl:copy&amp;gt;
  &amp;lt;/xsl:template&amp;gt;
&amp;lt;/xsl:stylesheet&amp;gt;&lt;/LI-CODE&gt;</description>
      <pubDate>Thu, 29 Jul 2021 13:13:43 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/How-can-I-remove-XML-Tag-Name-attributes-in-NiFi/m-p/321732#M228542</guid>
      <dc:creator>Marc_</dc:creator>
      <dc:date>2021-07-29T13:13:43Z</dc:date>
    </item>
  </channel>
</rss>

