When creating msxml object, specify the version explicitly. In vba it goes like this:
set xml = CreateObject("MSXML2.DomDocument.6.0")
Microsoft discourages using MSXML without specifying the version: Why Version-Independent GUIDs and ProgIDs Were Removed.