mirror of
https://gitee.com/chinabugotech/hutool.git
synced 2025-07-21 15:09:48 +08:00
setNamespaceAware as true
This commit is contained in:
@@ -474,6 +474,8 @@ public class XmlUtil {
|
||||
} else {
|
||||
factory = DocumentBuilderFactory.newInstance();
|
||||
}
|
||||
// 默认打开NamespaceAware,getElementsByTagNameNS可以使用命名空间
|
||||
factory.setNamespaceAware(true);
|
||||
return disableXXE(factory);
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user