if(in == null) return null; StringBuffer temp = new StringBuffer(in); XMLEscape(temp); return temp.toString();
if(buffer == null) return; char c; String escape; for(int i = 0; i < buffer.length();) { c = buffer.charAt(i); escape = getEscape(c); if(escape == null) i++; else { buffer.replace(i, i+1, escape); i += escape.length(); } }
	public static String XMLEscape(String in)	{		if(in == null)			return null;		StringBuffer temp = new StringBuffer(in);		XMLEscape(temp);		return temp.toString();	}