获取XML指定节点下的所有内容
本帖最后由 cexodgv 于 2013-12-16 20:39:53 编辑对我有用,谢谢!
Sub Command1_Click()
Set Dom = CreateObject("Microsoft.XMLDOM")
Dom.async = False
Dom.Load "C:\Documents and Settings\Administrator\桌面\a.xml"
Set Node = Dom.SelectSingleNode("mkryxx").SelectSingleNode("list1").ChildNodes(1)
For Each x In Node.ChildNodes
Debug.Print x.Text
Next
End Sub
补充:VB , 基础类