MSXML[2].DOMDocument?


DevX Home    Today's Headlines   Articles Archive   Tip Bank   Forums   

Results 1 to 1 of 1

Thread: MSXML[2].DOMDocument?

  1. #1
    Join Date
    Apr 2010
    Posts
    5

    MSXML[2].DOMDocument?

    On my current working computer, XP and Access 2002 / XP are running. References offered in the menu as to MSXML range from v2 to v6, which is probably normal on XP. I am to use MSXML late binding, i.e.
    Code:
    Dim domXXX As Object
    Set domXXX = CreateObject...
    I implemented this successfully on my current machine:
    Code:
    CreateObject("MSXML.DOMDocument")
    works fine. But I know that on computers running Vista or Win7 there is only a msxml6.dll. I will not ship such system libraries together with our product (for an installation on every workstation, ha ...). If I import msxml v6 temporarily during development, the root object is no longer namend MSXML, but MSXML2. Does that mean, that
    Code:
    CreateObject("MSXML.DOMDocument")
    will generate an error under Vista or Win7? Or will MSXML6 interpret the old object declarations? If not, which is the "most proper" way to react? Query the registry, if MSXMLv2 is there and registered, then
    Code:
    if ... then strDOMType = "MSXML.DOMDocument" else strDOMType = "MSXML.DOMDocument"
    CreateObject(strDOMType)
    ? If so, which registry keys would be interesting? Is there another way to query valid, import-ready libraries? Or should I, easier, define strDomType dependent on the Windows version?

    Thanks in advance.

    mupan
    Last edited by mupan; 04-23-2010 at 04:30 PM. Reason: Translation DE-EN ;-)

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
HTML5 Development Center
 
 
FAQ
Latest Articles
Java
.NET
XML
Database
Enterprise
Questions? Contact us.
C++
Web Development
Wireless
Latest Tips
Open Source


   Development Centers

   -- Android Development Center
   -- Cloud Development Project Center
   -- HTML5 Development Center
   -- Windows Mobile Development Center