mirror of
https://gitee.com/dromara/hutool.git
synced 2025-07-17 19:37:37 +08:00
add omit xml declaration
This commit is contained in:
parent
f3626f7073
commit
cf10fc9acc
@ -6,6 +6,7 @@
|
|||||||
## 5.1.2
|
## 5.1.2
|
||||||
|
|
||||||
### 新特性
|
### 新特性
|
||||||
|
* 【core 】 XmlUtil支持可选是否输出omit xml declaration(pr#732@Gtihub)
|
||||||
|
|
||||||
### Bug修复
|
### Bug修复
|
||||||
* 【core 】 修复isExpired的bug(issue#733@Gtihub)
|
* 【core 】 修复isExpired的bug(issue#733@Gtihub)
|
||||||
|
@ -809,7 +809,7 @@ public class XmlUtil {
|
|||||||
|
|
||||||
childEle = (Element) childNode;
|
childEle = (Element) childNode;
|
||||||
final Object value = result.get(childEle.getNodeName());
|
final Object value = result.get(childEle.getNodeName());
|
||||||
Object newValue = null;
|
Object newValue;
|
||||||
if (childEle.hasChildNodes()) {
|
if (childEle.hasChildNodes()) {
|
||||||
// 子节点继续递归遍历
|
// 子节点继续递归遍历
|
||||||
final Map<String, Object> map = xmlToMap(childEle);
|
final Map<String, Object> map = xmlToMap(childEle);
|
||||||
|
Loading…
Reference in New Issue
Block a user