Hi I found really useful the apache operator
StringUtils.substringBetween(fileContent, "<![CDATA[", "]]>")
to extract information inside
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<envelope>
<xxxx>
<yyyy>
<![CDATA[
<?xml version="1.0" encoding="UTF-8" ?>
<Document >
<eee>
<tt>
<ss>zzzzzzz</ss>
<aa>2021-09-09T10:39:29.850Z</aa>
<aaaa>
<Cd>cccc</Cd>
</aaaa>
<dd>ssss</dd>
<ff></ff>
</tt>
</eee>
</Document>
]]>
</yyyy>
</xxxx>
</envelope>
But now what I'm looking is another operator or regex that allow me to replace a dynamic xml
![CDATA["old_xml"]]
by another xml
![CDATA["new_xml"]]
Any idea idea how to accomplish this?
Regards.