Here you can find the source of unescapeXMLEntity(String str)
private static String unescapeXMLEntity(String str)
//package com.java2s; //License from project: LGPL public class Main { private static String unescapeXMLEntity(String str) { if ("lt".equals(str)) return "<"; if ("gt".equals(str)) return ">"; if ("amp".equals(str)) return "&"; if ("apos".equals(str)) return "'"; if ("quot".equals(str)) return "\""; return "&" + str + ";"; }/* w ww. ja va 2 s .c om*/ }