Fix defect #5 - newlines issue in json. Add CDATA section for xml outputs.