add omit xml declaration

This commit is contained in:
Looly 2020-01-22 07:32:48 +08:00
parent f3626f7073
commit cf10fc9acc
2 changed files with 2 additions and 1 deletions

View File

@ -6,6 +6,7 @@
## 5.1.2
### 新特性
* 【core 】 XmlUtil支持可选是否输出omit xml declarationpr#732@Gtihub
### Bug修复
* 【core 】 修复isExpired的bugissue#733@Gtihub

View File

@ -809,7 +809,7 @@ public class XmlUtil {
childEle = (Element) childNode;
final Object value = result.get(childEle.getNodeName());
Object newValue = null;
Object newValue;
if (childEle.hasChildNodes()) {
// 子节点继续递归遍历
final Map<String, Object> map = xmlToMap(childEle);