Java tutorial
//package com.java2s; public class Main { private static String decodeXML(String escapedXML) { String decodedXML = escapedXML; decodedXML = decodedXML.replaceAll("<", "<"); decodedXML = decodedXML.replaceAll(">", ">"); decodedXML = decodedXML.replaceAll(""", "\""); decodedXML = decodedXML.replaceAll("'", "'"); decodedXML = decodedXML.replaceAll("&", "&"); return decodedXML; } }