当创建一个XML文档的区别是什么(如果有的话)添加文本元素的这两种方法:差异
Element el = document.createElement("element");
el.setTextContent("This is the text content");
和
Element el = document.createElement("element");
Text txt = document.createTextNode("This is the text content");
el.appendChild(txt);