Use the Base64EncodeContent Processor with XML
How can I use the output of the Base64EncodeContent (or the Base64Encode function) as input for an XML template, where the flow file content (not an attribute) is the XML with the encoded value included? There doesn't seem to be a NiFi reader that reads the encoded flow file content, so I'm not sure how best to use this processor aside from using a couple of ReplaceText processors to bracket XML substrings around it.
I appreciate any input. Thanks for reading.
example:
Initial Flow File: "The quick brown fox jumped over the lazy dog"
Encoded Flow File: VGhlIHF1aWNrIGJyb3duIGZveCBqdW1wZWQgb3ZlciB0aGUgbGF6eSBkb2c=
<?xml version="1.0" encoding="UTF-8" ?>
<a xmlns="some/name/space/goes/here">
<b>This is a template</b>
<c>ENCODED DATA GOES HERE</c>
</a>

