I have a little VB script that works while using MSXML 3.0 but not 6.0. I have read that I should stay away from both 4.0 & 5.0.
All the script does is find a node, display the inner text in a message box.
Test script:
Dim xmlResponseDocument
' Set xmlResponseDocument = CreateObject("Msxml2.DOMDocument.3.0") ' uses MSXML 3.0
Set xmlResponseDocument = CreateObject("Msxml2.DOMDocument.6.0") ' uses MSXML 6.0
' Load the xml document from a file for testing
xmlResponseDocument.load("C:\Trash\IsFollowupNurseValid.xml")
Dim Nodes
set Nodes=xmlResponseDocument.getElementsByTagName("IsFollowupNurseValidResult")
for each child in Nodes
MsgBox child.text, ,child.nodeName
next
For Each lookupTypeNode In xmlResponseDocument.SelectNodes("//IsFollowupNurseValidResult")
MsgBox lookupTypeNode.Text, , "Select Nodes"
Next
MsgBox "Finish Running"
Set Nodes=nothing
set xmlResponseDocument = nothing
XML Document:
<s:Envelope xmlns:s="http://schemas.xmlsoap.org/soap/envelope/">
<s:Body>
<IsFollowupNurseValidResponse xmlns="http://example.com/Quark/">
<IsFollowupNurseValidResult>false</IsFollowupNurseValidResult>
</IsFollowupNurseValidResponse>
</s:Body>
</s:Envelope>