add methods

This commit is contained in:
Looly
2021-08-18 21:43:49 +08:00
parent 8c1fced281
commit 5dce48db5e
3 changed files with 14 additions and 1 deletions

View File

@@ -1326,6 +1326,17 @@ public class XmlUtil {
public static Node appendText(Node node, CharSequence text) {
return appendText(getOwnerDocument(node), node, text);
}
/**
* 追加数据子节点可以是Map、集合、文本
*
* @param node 节点
* @param data 数据
* @since 5.7.10
*/
public static void append(Node node, Object data) {
append(getOwnerDocument(node), node, data);
}
// ---------------------------------------------------------------------------------------- Private method start
/**