public static void writeComment(
		StringBuffer buf, 
		int depth, 
		String line_ending, 
		String comment
	) {
			indent(buf, depth);
			buf.append("<!--");
			buf.append(escapeXMLComment(comment));
			buf.append("-->");
			if (line_ending != null) {
				buf.append(line_ending);
			}
	}