Java tutorial
//package com.java2s; public class Main { public static String RestoreCDATA(String xml) { xml = xml.replace("CDATA_B", "<![CDATA["); return xml.replace("CDATA_E", "]]>"); } }