Support Questions
Find answers, ask questions, and share your expertise
Announcements
Alert: Welcome to the Unified Cloudera Community. Former HCC members be sure to read and learn how to activate your account here.

Nifi - How to Add new tag in xml and replace tag in xml

Highlighted

Nifi - How to Add new tag in xml and replace tag in xml

New Contributor

my input - <managedObject class="WELL" version="ABC17" distName="PLM-PN/RNC-5/WS-1617/WL-171" id="37497">

<p name="Number">1</p>

<p name="Number1">1</p>

</managedObject >

i would like to replace it with <p name = with <Number> , and </p> with </Number>

and add new tag

my output must be

<manage>

<class>WELL</class>

<version>ABC17</version>

<distName>PLM-PN/RNC-5/WS-1617/WL-171</distName>

<id>37497</id>

<Number>1</Number>

<Number1>1</Number1>

</manage >