我实际上正在更新一个旧版应用程序VB 6.0
,我需要将一个元素添加到声明为IXMLDOMElement
. 我的 XML 对象的内容实际上如下;
<ChoiceLists>
<Test Default="*">
<Choice Value="1" Description="Hours"/>
<Choice Value="2" Description="Days"/>
</Test>
</ChoiceLists>
现在我有一个查询,它已经返回了一个 XML 格式的结果(作为字符串),如
<Test2 Default="*">
<Choice Value="276" Description="#276"/>
<Choice Value="177" Description="#177"/>
<Choice Value="0000" Description="#0000"/>
<Choice Value="176" Description="#176"/>
</Test2>
我需要将其集成到我的 XML 中,即在 root node<ChoiceLists>
中。
谁能告诉我如何将此字符串添加到我的 XML 中?我一直在尝试IXMLDOMElement
对象的不同功能,但徒劳无功。
谢谢