拼凑XML
String content="<name>chenlk</name><age>18</age>";
StringBuilder sBuilder = new StringBuilder(content);
sBuilder.insert(0, "<ecity>");
sBuilder.insert(0, "<?xml version="1.0" encoding="UTF-8"?>");
sBuilder.append("</ecity>");
System.out.println(sBuilder.toString());
一个简单的xml拼凑