Solved

Error creating DOM doc

Posted on 2001-07-12
8
174 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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
PeopleSoft Has Never Been Easier

PeopleSoft Adoption Made Smooth & Simple!

On-The-Job Training Is made Intuitive & Easy With WalkMe's On-Screen Guidance Tool.  Claim Your Free WalkMe Account Now

 

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

Announcing the Most Valuable Experts of 2016

MVEs are more concerned with the satisfaction of those they help than with the considerable points they can earn. They are the types of people you feel privileged to call colleagues. Join us in honoring this amazing group of Experts.

Question has a verified solution.

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

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…
If you need to start windows update installation remotely or as a scheduled task you will find this very helpful.
Get people started with the process of using Access VBA to control Outlook using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Microsoft Outlook. Using automation, an Access applic…
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…
Suggested Courses
Course of the Month10 days, 13 hours left to enroll

631 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