Which version of Microsoft XML (msxml?.dll) to ref

2020-07-02 11:54发布

问题:

I am starting getting to grips with XML through VB6. I frequently find the advice to reference version 2.6 of Microsoft XML. However, on my development computer I get a wealth of choices ranging from version 2 (msxml2.dll) to version 6 (msxml6.dll)

Which one to choose?

回答1:

MSXML3 shipped with Internet Explorer 6, and is a pretty safe bet for being installed on all versions of windows today. If you are going to use a later version, you are going to have to ship the installer for it along with it. BTW nonnb is wrong and the supported version of MSXML4 SP3 is (see download details: ),

MSXML 4.0 SP3 is supported on the following operating systems:

  • Windows 2000

  • Windows Server 2003

  • Windows XP

  • Windows Vista

  • Windows Server 2008

    and if you are going to go with an installer and not support Win95/98, you might as well go with MSXML6, use the latest code and use the MSI provided.



回答2:

I usually go with the XML Team's recommendations:

Using the right version of MSXML in Internet Explorer

I doubt this advice is limited to IE.

Summary: Use 6.0 if possible, 3.0 as a fallback.



标签: xml vb6