mirror of
https://gitee.com/chinabugotech/hutool.git
synced 2025-07-21 15:09:48 +08:00
fix code
This commit is contained in:
@@ -760,10 +760,11 @@ public class XmlUtil {
|
||||
*
|
||||
* @param data Map类型数据
|
||||
* @param rootName 根节点名
|
||||
* @param namespace 命名空间,可以为null
|
||||
* @return XML格式的字符串
|
||||
* @since 5.0.4
|
||||
*/
|
||||
public static String mapToXmlStr(Map<?, ?> data, String rootName,String namespace) {
|
||||
public static String mapToXmlStr(Map<?, ?> data, String rootName, String namespace) {
|
||||
return toStr(mapToXml(data, rootName, namespace));
|
||||
}
|
||||
|
||||
@@ -785,10 +786,11 @@ public class XmlUtil {
|
||||
*
|
||||
* @param data Map类型数据
|
||||
* @param rootName 根节点名
|
||||
* @param namespace 命名空间,可以为null
|
||||
* @return XML
|
||||
* @since 5.0.4
|
||||
*/
|
||||
public static Document mapToXml(Map<?, ?> data, String rootName,String namespace) {
|
||||
public static Document mapToXml(Map<?, ?> data, String rootName, String namespace) {
|
||||
final Document doc = createXml();
|
||||
final Element root = appendChild(doc, rootName, namespace);
|
||||
|
||||
|
Reference in New Issue
Block a user