You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@nifi.apache.org by Puspak Das <pu...@gmail.com> on 2019/09/20 04:14:57 UTC

NIfi relace text for XML flow file content

Hi team ,

I have a xml flow file content where an particular tag is under there inside several parent tag .
but i just want to replace one particular tag value with an attribute value of the same flow file .

Please suggest how to achive it .

Regards
Puspak



Re: NIfi relace text for XML flow file content

Posted by ski n <ra...@gmail.com>.
I would suggest to use XSLT with the TransformXML Processor (
https://nifi.apache.org/docs/nifi-docs/components/org.apache.nifi/nifi-standard-nar/1.9.2/org.apache.nifi.processors.standard.TransformXml/
)

It's the most precise way to work with XML (better than for example
ReplaceText with regular expressions). There enough examples to find to do
this task with XSLT.

Regards,

Raymond


Op vr 20 sep. 2019 om 06:22 schreef Puspak Das <pu...@gmail.com>:

> Hi team ,
>
> I have a xml flow file content where an particular tag is under there
> inside several parent tag .
> but i just want to replace one particular tag value with an attribute
> value of the same flow file .
>
> Please suggest how to achive it .
>
> Regards
> Puspak
>
>
>