举个小例子
//构建入参xmlDocument document = DocumentHelper.createDocument();Element root = document.addElement("wss");Element lajgEle = root.addElement("wsss");lajgEle.addElement("c").addText(c);lajgEle.addElement("n").addText(n);lajgEle.addElement("c").addText(c);String xmlParamStr = document.asXML();
<?xml version="1.0" encoding="UTF-8"?>
<wss><wsss><c></c><n></n><c></c></ws>
</wsss>