Thanks. I got one of those examples to work using this:
Added a reference to MSXML version 6.
My xml file located at c:\test.xml
Code:
<COMMAND>
<WHOIS>
<NAME>That is me</NAME>
</WHOIS>
</COMMAND>
My vb code:
Code:
Private Sub Form_Load()
Dim docFile As New DOMDocument30
Dim docParent As IXMLDOMNode
Dim docName As IXMLDOMNodeList
Dim intIndex As Integer
docFile.Load "C:\test.xml"
Set docParent = docFile.documentElement.selectSingleNode("WHOIS")
Set docName = docParent.selectNodes("NAME")
Debug.Print "test"
For intIndex = 0 To docName.length - 1
Debug.Print docName(intIndex).Text
Next
Set docParent = Nothing
Set docName = Nothing
End Sub
Ultimately, I am trying to save textbox values to an XML file so that I can recall or load them back in later on.