mirror of
https://gitee.com/chinabugotech/hutool.git
synced 2025-07-21 15:09:48 +08:00
fix xml bug
This commit is contained in:
@@ -513,7 +513,7 @@ public class XmlUtil {
|
||||
*/
|
||||
public static Document createXml(String rootElementName, String namespace) {
|
||||
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;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user