Windows Server 2016 - MSXML a DOMDocument 版本

Windows Server 2016 - MSXML a DOMDocument versions

安装后 Windows Server 2012 和 Windows Server 2016 本机支持哪些版本的 MSXML 和 DOMDocument?

Modern versions of Windows come with MSXML3 and MSXML6, by default.

这是一个用于测试不同版本的 VBScript。

On Error Resume Next

Tester "MSXML2.DOMDocument.3.0"
Tester "MSXML2.DOMDocument.4.0"
Tester "MSXML2.DOMDocument.5.0"
Tester "MSXML2.DOMDocument.6.0"

Sub Tester (ObjectName)
    Err.Clear
    Set obj = CreateObject(ObjectName)
    If Not Err.Number <> 0 Then
        WScript.Echo ObjectName
    End If 
End Sub