fix bug when XML already contains CDATA tags

If the XML file already contains CDATA tags, the script adds them again and the XML gets invalid, simplexml won't parse it.