Java tutorial
//package com.java2s; /* * Copyright (C) 2006-2016 Talend Inc. - www.talend.com * * This source code is available under agreement available at * %InstallDIR%\features\org.talend.rcp.branding.%PRODUCTNAME%\%PRODUCTNAME%license.txt * * You should have received a copy of the agreement along with this program; if not, write to Talend SA 9 rue Pages * 92150 Suresnes, France */ public class Main { public static String transformXmlToString(String XmlString) { return XmlString.replaceAll("&", "&").replaceAll("<", "<").replaceAll(">", ">") //$NON-NLS-1$//$NON-NLS-2$//$NON-NLS-3$//$NON-NLS-4$//$NON-NLS-5$//$NON-NLS-6$ .replaceAll("\"", """) //$NON-NLS-1$ //$NON-NLS-2$ .replaceAll("'", "'"); //$NON-NLS-1$ //$NON-NLS-2$ } }