Java tutorial
//package com.java2s; public class Main { static String makeXMLCloseElement(String elementName) { StringBuffer sb = new StringBuffer(); sb.append("</"); sb.append(elementName); sb.append(">"); return sb.toString(); } }