CreateNode的用法,急
生成XML用的,用的是txmldocument组件,定义的节点是ixmlnode
本来的用的addchild()语句,但是有参数错误
delphi的帮助里面有:
AddChild only adds element nodes. To add other types of child nodes, use the XML document CreateNode method instead, and then add the resulting node to the ChildNodes property array.
我想用createnode来代替
在
result := query.fieldbyname('data1').asstring;
后的 语句
dNode:=cNode.AddChild(result);
应该怎磨做?