fix bug when XML already contains CDATA tags