在VB中如何新建2级结点 |
|
www.nanhushi.com 佚名 不详 |
Set oRoot = oDoc.createElement("Root") Set oDoc.documentElement = oRoot oRoot.setAttribute "部门编号", "897" ' 加入子结点 Set oNode = oDoc.createElement("Document") oNode.Text = "Demo" oRoot.appendChild oNode Set oNode = oDoc.createElement("CreateDate") oRoot.appendChild oNode oNode.Text = "Demo" 比如要在子结点下再增加一级结点如何加 --------------------------------------------------------------- Set oNodeChild = oDoc.createElement("Document") oNodeChild.Text = "Demo" oNode.appendChild oNodeChild --------------------------------------------------------------- createElement("") appendChild 就可以的呀
|
|
|
文章录入:杜斌 责任编辑:杜斌 |
|
上一篇文章: VisualBasic编程基础--应用程序的结构 下一篇文章: 计算机等级考试二级(VB)的复习方法_2006年计算机等级考试 |
【字体:小 大】【发表评论】【加入收藏】【告诉好友】【打印此文】【关闭窗口】 |
|
|