Here you can find the source of unescapeXml(String str)
public static String unescapeXml(String str)
//package com.java2s; public class Main { public static String unescapeXml(String str) { str = str.replaceAll("&", "&"); str = str.replaceAll("<", "<"); str = str.replaceAll(">", ">"); str = str.replaceAll(""", "\""); str = str.replaceAll("'", "'"); return str; }// www . ja v a 2s. c o m }