更新时间:2023-02-05 20:14:11
这应该有效:
Set newNode= XMLFile.CreateElement("price");
newNode.InnerText = "19.95"
trade.appendChild(newNode)
请注意,变量trade
和newNode
都应声明为IXMLDOMNode
(在库msxml6.dll
中定义的类型).
Please note that both variables trade
and newNode
should be declared as IXMLDOMNode
(type defined in the library msxml6.dll
).