您的位置:程序门 -> vb -> 基础类



请问用vb增加xml节点怎么做?急。


[收藏此页] [打印本页]选择字色:背景色:字体:[][][]


请问用vb增加xml节点怎么做?急。
发表于:2007-07-13 11:55:56 楼主
<root>  
<node1>
<a> </a>
  <b> </b>
  <c> </c>
</node1>
<node2>
<a> </a>
  <b> </b>
  <c> </c>
</node2>
<root>
 
请问:我想增加 <node3> ,应该怎么做?
发表于:2007-07-13 12:11:101楼 得分:0
查查xmldom...

以前做过..但是忘记了..要搜索下才知道


方法很多..所以最好是你自己去查下dom相关的资料...msdn上搜索下估计就有..baidu估计也能找到一些chm的xmldom手册来...

找个你喜欢的方法...
发表于:2007-07-13 17:19:292楼 得分:0
dim   xmldoc   as   new   msxml2.domdocument
dim   xmlnode   as   ixmldomnode
dim   subnode   as   ixmldomnode

set   xmlnode   =   xmldoc.createnode(1,   "node1 ",   " ")
set   subnode   =   xmldoc.createnode(1,   "node11 ",   " ")
xmlnode.appendchild   subnode
xmldoc.appendchild   xmlnode
msgbox   xmldoc.xml


快速检索

最新资讯
热门点击