mirror of
https://gitee.com/chinabugotech/hutool.git
synced 2025-05-09 23:51:34 +08:00
setNamespaceAware as true
This commit is contained in:
parent
9a68d4299f
commit
308368cffd
@ -11,6 +11,7 @@
|
||||
* 【core 】 PageUtil支持setFirstPageNo自定义第一页的页码(issue#I1CGNZ@Gitee)
|
||||
* 【http 】 UserAgentUtil增加Chromium内核的Edge浏览器支持(issue#800@Github)
|
||||
* 【cache 】 修改FIFOCache中linkedHashMap的初始容量策略(pr#801@Github)
|
||||
* 【core 】 修改XmlUtil中setNamespaceAware默认为true
|
||||
|
||||
### Bug修复
|
||||
* 【core 】 修复NumberWordFormatter拼写错误(issue#799@Github)
|
||||
|
@ -474,6 +474,8 @@ public class XmlUtil {
|
||||
} else {
|
||||
factory = DocumentBuilderFactory.newInstance();
|
||||
}
|
||||
// 默认打开NamespaceAware,getElementsByTagNameNS可以使用命名空间
|
||||
factory.setNamespaceAware(true);
|
||||
return disableXXE(factory);
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user