Option Explicit
Sub GetData()
Dim URL As String
Dim XMLData
Dim node As Object
URL = "...sample.xml"
Set XMLData = CreateObject("Microsoft.XMLDOM")
XMLData.Load URL
Debug.Print
For Each node In XMLData.SelectNodes("*//Date")
Debug.Print node.Text
Next
End Sub
The code given below works with the posted XML data.
Code:
Sub GetData()
Dim URL As String
Dim XMLData
Dim node As Object
URL = "C:\Users\AllUsers\Downloads\temp.xml"
Set XMLData = CreateObject("Microsoft.XMLDOM")
XMLData.Load URL
For Each node In XMLData.SelectNodes("//Date")
Debug.Print node.Text
Next
End Sub