I'm looking to convert the contents of an XML file into a String variable in excel VBA so that I can search the file for a specific string.
However I don't know how to do the initial conversion from XML file to String variable. All I've been able to do so far is load the XML document, and from there I'm stuck.
Public Function DetermineSpecifiedChange(ByVal vstrInputGBOMPath As String, ByVal vstrInputPDPPath As String)
Dim strPDPString As String
Dim strGBOMString As String
Dim xmlGBOM As New DOMDocument60
Dim xmlPDP As New DOMDocument60
strPDPString = xmlPDP.Load(vstrInputPDPPath)
End Function
So far all this returns is "True", signifying that the file is being loaded.
How would I go about converting the XML file into a string?