使用addElement(Stringname)方法添加一个元素节点
- 使用addElement(Stringname)方法添加一个元素节点:
Elementelement=rootElement.addElement("childElement");
element.addAttribute("attributeName","attributeValue");
element.addText("Thisisthetextcontentoftheelement");
element.addCDATA("ThisistheCDATAcontentoftheelement");
ElementchildElement=rootElement.addElement("childElement").addAttribute("attributeName","attributeValue");
版权声明
本文仅代表作者观点,不代表博信信息网立场。
上一篇:
分布式协调服务 下一篇:pythonmath模块求二元一次函数