Java截取代码:
String requestText = "<body>" + requestXML.split("<body>")[1].split("</body>")[0] + "</body>";
xml文件
<?xml version="1.0" encoding="UTF-8" standalone="yes"?><root>
<head>
<proposalNo>11111</proposalNo>
<acceptTime>11111</acceptTime>
</head>
<body>
<resCode>11111</resCode>
<resMsg>11111</resMsg>
<proposalNo>111111</proposalNo>
</body>
</root>