Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations John Tel on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

problem using MSXML reference in vb6

Status
Not open for further replies.

Guest_imported

New member
Jan 1, 1970
0
Dim blnRes As Boolean
Dim XMLString As String
Dim xmlDoc As New MSXML2.DOMDocument26
XMLString = &quot;<sample-tag attr1=&quot;&quot;3&quot;&quot;>data</forecast>&quot;
blnRes = xmlDoc.loadXML(XMLString)
I am using above five statements in myvb program for creating an xml file.At run time i get error at 4th statement (blnRes = xmlDoc.loadXML(XMLString))with message saying &quot;ActiveX component cannot create objects&quot;
What could be the possible reason
Thanks in advance.
 
if you could change (I have ver. 3.0)

Code:
Dim xmlDoc As New MSXML2.DOMDocument26

to

[tt]Dim xmlDoc As New MSXML2.DOMDocument30[/tt]

or to

[tt]Dim xmlDoc As New MSXML2.DOMDocument[/tt]
 
I have version 2.6
So i have MSXML2.DOMDocument26 and MSXML2.DOMDocument available..I tried with both o these options but still the same error.
And could you tell me how can i upgrade to 3.0.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top