a small dummy question, sorry for that, I didn't found any reference about it. How can I know whats is the options i got for variable 'el', i mean which method can i active on 'el' for example I know I can use method "getAttribute("....")", but what else which else method or property i can use ?
note: Ctrl + space won't work in this case. i found this link but it's not relevant for vba https://msdn.microsoft.com/en-us/library/ms757828(v=vs.85).aspx
VBA:
Dim oDoc As New MSXML2.DOMDocument30
Dim el As Object
Dim XML As String
XML =("C:\........")
oDoc.validateOnParse = True
oDoc.Load XML
dim Name as String
Name= "yaron"
'select the User node with Name="Yaron"
Set el = oDoc.SelectSingleNode("/GetUserInfo/User[@Name='" & Name & "']")
'e. ???????whats my options?
If Not el Is Nothing Then
Debug.Print el.getAttribute("LoginName")
Else
Debug.Print "user id not found!"
End If
XML:
<GetUserInfo>
<User ID="16" Name="DAVID" LoginName="login1"/>
<User ID="17" Name="GAL" LoginName="login2"/>
<User ID="18" Name="YARON" LoginName="login3"/>
</GetUserInfo>