请教如何用msxml提取xml文件中的数据
有这样一个xml文件
<?xml version= "1.0 "?>
<?xml:stylesheet type= "text/xsl " href= "myxml.xsl "?>
<portfolio xmlns:dt= "urn:schemas-microsoft-com:datatypes ">
<MyNode>
<name> Node1 </name>
<value>
<content>
<composer> Keta </composer>
<composer> Kenny </composer>
</content>
<offset> 100 </offset>
</value>
</MyNode>
<MyNode>
<name> Node2 </name>
<value>
<content>
<composer> Keta </composer>
</content>
<offset> 200 </offset>
</value> </MyNode>
<MyNode>
<name> Node3 </name>
<value>
<content>
<composer> Kenny </composer>
</content>
<offset> 300 </offset>
</value>
</MyNode>
</portfolio>
请教怎样用msxml遍历该文件中的每一个数据节点?谢谢了
[解决办法]
For each node in xml.childNodes
Or
dim nodes as IXMLDOMNodeList
set nodes= xml.selectNodes( "MyNode ")
[解决办法]
selectsinglenode实现