Option Explicit Const strXml As String = "" & _ "" & _ "" & _ "" & _ "" & _ "" & _ "" & _ "" & _ "" & _ "" Sub Main_Xml() Dim MyXml As Object Dim myNodes, myNode With CreateObject("MSXML2.DOMDocument") .LoadXML strXml Set myNodes = .getElementsByTagName("Student") End With If Not myNodes Is Nothing Then For Each myNode In myNodes Debug.Print myNode.getAttribute("Name") Next End If Set myNodes = Nothing End Sub