Solved

Error creating DOM doc

Posted on 2001-07-12
8
171 Views
Last Modified: 2012-08-13
Hi

  I am getting a 'type mismatch' error when I am trying to create a XML document. I have set a reference to Microsost XMl, v4.0.

Could someoen please help.

Dylan

Dim usersDoc As DOMDocument
Set usersDoc = CreateObject("Microsoft.XMLDOM")
0
Comment
Question by:dilantha
  • 5
  • 3
8 Comments
 
LVL 4

Accepted Solution

by:
WolfgangKoenig earned 50 total points
ID: 6277094
Try:
Dim usersDoc As MSXML.DOMDocument
Set usersDoc = CreateObject("Microsoft.XMLDOM")

The syntax is correct
WoK
0
 
LVL 4

Expert Comment

by:WolfgangKoenig
ID: 6277096
You can take also V2.0
...
WoK
0
 
LVL 4

Expert Comment

by:WolfgangKoenig
ID: 6277110
This is also right:
Dim usersDoc As MSXML.DOMDocument
Set usersDoc = New DOMDocument

BYe
WoK
0
Complete VMware vSphere® ESX(i) & Hyper-V Backup

Capture your entire system, including the host, with patented disk imaging integrated with VMware VADP / Microsoft VSS and RCT. RTOs is as low as 15 seconds with Acronis Active Restore™. You can enjoy unlimited P2V/V2V migrations from any source (even from a different hypervisor)

 

Author Comment

by:dilantha
ID: 6277201
Thanx Wolfgang
0
 

Author Comment

by:dilantha
ID: 6277202
Thanx Wolfgang
0
 

Author Comment

by:dilantha
ID: 6277203
Thanx Wolfgang
0
 

Author Comment

by:dilantha
ID: 6277207
Thanx Wolfgang
0
 

Author Comment

by:dilantha
ID: 6277209
Thanx Wolfgang
0

Featured Post

Master Your Team's Linux and Cloud Stack

Come see why top tech companies like Mailchimp and Media Temple use Linux Academy to build their employee training programs.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Introduction While answering a recent question (http://www.experts-exchange.com/Q_27402310.html) in the VB classic zone, I wrote some VB code in the (Office) VBA environment, rather than fire up my older PC.  I didn't post completely correct code o…
When trying to find the cause of a problem in VBA or VB6 it's often valuable to know what procedures were executed prior to the error. You can use the Call Stack for that but it is often inadequate because it may show procedures you aren't intereste…
Get people started with the utilization of class modules. Class modules can be a powerful tool in Microsoft Access. They allow you to create self-contained objects that encapsulate functionality. They can easily hide the complexity of a process from…
This lesson covers basic error handling code in Microsoft Excel using VBA. This is the first lesson in a 3-part series that uses code to loop through an Excel spreadsheet in VBA and then fix errors, taking advantage of error handling code. This l…

810 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question