in reply to CDATA in an XML file for parsing.

I suggest XML::LibXML. You will have 2 XML::LibXML::CDATASection nodes. Just reparse them - that should be it!