Support Questions
Find answers, ask questions, and share your expertise

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

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 >

0 REPLIES 0