8,906
社区成员
发帖
与我相关
我的任务
分享
oxh = xmldoc.createElement("row");
oxh.setAttribute("DIC_CODE",obj.getDicCode());
oxh.setAttribute("DIC_TEXT",obj.getDicText());
oxh.setAttribute("DIC_SPELL","");
oxh.setAttribute("DIC_ASPELL","");
root.appendChild(oxh);
<?xml version="1.0" encoding="UTF-8"?>
<data>
<row DIC_ASPELL="" DIC_CODE="1" DIC_SPELL="" DIC_TEXT="222"/>
<row DIC_ASPELL="" DIC_CODE="2" DIC_SPELL="" DIC_TEXT="222"/>
</data>