系统对接 外部交换平台 使用XML形式 拼接比较费时繁琐。
DocumentHelper 工具类。
Document doc = null;
String xxx = SendNC.readToString("test.xml");
String xml = xxx.substring(xxx.indexOf("<?xml"), xxx.length());
String returnString = "";
try
{
wr = new WorkflowEventResult();
doc = DocumentHelper.parseText(xml);
log.info("客户ID:");
Object khid = formData.get("客户ID");
node = doc.selectSingleNode("//creceivecustid");
node.setText(StringUtil.filterNullObject(khid));
node = doc.selectSingleNode("//ccustomerid");
node.setText(StringUtil.filterNullObject(khid));