mirror of
https://gitee.com/chinabugotech/hutool.git
synced 2025-05-09 23:51:34 +08:00
fix xml bug
This commit is contained in:
parent
ced42166d3
commit
9b470616ba
@ -27,6 +27,7 @@
|
|||||||
* 【http 】 修复HttpUtil.encodeParams针对无参数URL问题(issue#817@Github)
|
* 【http 】 修复HttpUtil.encodeParams针对无参数URL问题(issue#817@Github)
|
||||||
* 【extra 】 修复模板中无效引用的问题
|
* 【extra 】 修复模板中无效引用的问题
|
||||||
* 【extra 】 修复读取JSON文本配置未应用到子对象的问题(issue#818@Github)
|
* 【extra 】 修复读取JSON文本配置未应用到子对象的问题(issue#818@Github)
|
||||||
|
* 【extra 】 修复XmlUtil.createXml中namespace反向问题
|
||||||
|
|
||||||
-------------------------------------------------------------------------------------------------------------
|
-------------------------------------------------------------------------------------------------------------
|
||||||
|
|
||||||
|
@ -513,7 +513,7 @@ public class XmlUtil {
|
|||||||
*/
|
*/
|
||||||
public static Document createXml(String rootElementName, String namespace) {
|
public static Document createXml(String rootElementName, String namespace) {
|
||||||
final Document doc = createXml();
|
final Document doc = createXml();
|
||||||
doc.appendChild(null == namespace ? doc.createElement(rootElementName) : doc.createElementNS(rootElementName, namespace));
|
doc.appendChild(null == namespace ? doc.createElement(rootElementName) : doc.createElementNS(namespace, rootElementName));
|
||||||
return doc;
|
return doc;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user