Java tutorial
//package com.java2s; public class Main { private static void addReportRootNode(StringBuffer sbRoot, String nodeName, String content) { sbRoot.append("<" + nodeName + ">" + content + "</" + nodeName + ">"); } }