value = value.replaceAll("&", "&amp;"); value = value.replaceAll("<", "&lt;"); value = value.replaceAll(">", "&gt;"); value = value.replaceAll("\"", "&quot;"); value = value.replaceAll("'", "&apos;"); value = value.replaceAll("\t", "&#09;");
    private static StringBuffer appendProperty(StringBuffer buffer, String name, String value) {        buffer.append("<");        int index = buffer.length();        if (name.startsWith("svn:")) {            buffer.append("S:");            buffer.append(name.substring("svn:".length()));        } else {            buffer.append("C:");            buffer.append(name);        }        int index2 = buffer.length();        if (value == null) {            return buffer.append(" />");        }        buffer.append(">");        buffer.append(value);        buffer.append("</");        buffer.append(buffer.substring(index, index2));        return buffer.append(">");            }