why does Msxml DocumentElement/SelectSingleNode returns nothing?
问题 The DocumentElement property and the SelectSingleNode keep on returning nothing, I have verified that the xml loads correctly, the problem seems to lie in the xml parser. The xml does not have any namespaces so it shouldn't needed to be set. Private Function ParseWord(word As String) As String Dim tempFile As String tempFile = Environ("temp") & "\" & "temporaryWord" & ".xml" Call CreateFile(tempFile, word) Dim xmlDoc As Object Set xmlDoc = CreateObject("MSXML2.DOMDocument.6.0") With xmlDoc