Search code examples
xmlvb6

Which version of Microsoft XML (msxml?.dll) to reference in my VB6 project


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?


Solution

  • 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.