setNamespaceAware as true

This commit is contained in:
Looly 2020-03-25 10:41:36 +08:00
parent 9a68d4299f
commit 308368cffd
2 changed files with 3 additions and 0 deletions

View File

@ -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

View File

@ -474,6 +474,8 @@ public class XmlUtil {
} else {
factory = DocumentBuilderFactory.newInstance();
}
// 默认打开NamespaceAwaregetElementsByTagNameNS可以使用命名空间
factory.setNamespaceAware(true);
return disableXXE(factory);
}