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



谁会用msxml2.domdocument,指导一下小弟!(100分)


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


谁会用msxml2.domdocument,指导一下小弟!(100分)
发表于:2007-02-27 10:01:03 楼主
xmldoc.appendchild   xmldoc.createprocessinginstruction( "xml ",   "version= '1.0 '   encoding= 'utf-8 ' ")
 
set   rootelement   =   xmldoc.createelement( "transaction ")
xmldoc.appendchild   (rootelement)

set   toelement_header   =   xmldoc.createelement( "transaction_header ")
rootelement.appendchild   (toelement_header)

set   toelement   =   xmldoc.createelement( "id ")
toelement_header.appendchild   (toelement)
set   toelementtext   =   xmldoc.createtextnode( "001 ")
toelement.appendchild   (toelementtext)

请问我想写 <id   type=g> 001 </id>
怎么写啊?
发表于:2007-02-27 10:10:251楼 得分:0
高人帮帮我啊
发表于:2007-02-27 10:15:042楼 得分:0
急急急!
发表于:2007-02-27 10:39:213楼 得分:0
快来啊!!!
发表于:2007-09-10 17:41:234楼 得分:0
=.=


快速检索

最新资讯
热门点击