troubleshooting Question

msxml 4.0 vs msxml3.0

Avatar of seasons712
seasons712 asked on
3 Comments1 Solution1119 ViewsLast Modified:
Dear all,

In the past, i used xml3.0 dom object in ASP to retrieve XML data.  For example

set DataSrc = Server.CreateObject("Microsoft.XMLDOM")
set DataNode = DataSrc.selectNodes("RAW_DATA/PUBLISH[@NUM='" & vNum & "'&&@DAY='" & vDay & "'&&NAME='" & vName & "']")

where vNum, vDay, vName is variables.  That's ok, no problem in ASP programming.

However, after I changed to use XML4.0, it shows error in line 2, my coding is:

set DataSrc = Server.CreateObject("MSXML2.DOMDocument.4.0")
set DataNode = DataSrc.selectNodes("RAW_DATA/PUBLISH[@NUM='" & vNum & "'&&@DAY='" & vDay & "'&&NAME='" & vName & "']")

The error msg is:
Error Type:
msxml4.dll (0x80004005)
Unexpected character in query string. PUBLISH[@NUM='1'-->&<--&@DAY='SAT'&&@NAME='Administrator']

I dont understand the meaning of error message.  Please help!



Our community of experts have been thoroughly vetted for their expertise and industry experience.

Join our community to see this answer!
Unlock 1 Answer and 3 Comments.
Start Free Trial
Learn from the best

Network and collaborate with thousands of CTOs, CISOs, and IT Pros rooting for you and your success.

Andrew Hancock - VMware vExpert
See if this solution works for you by signing up for a 7 day free trial.
Unlock 1 Answer and 3 Comments.
Try for 7 days

”The time we save is the biggest benefit of E-E to our team. What could take multiple guys 2 hours or more each to find is accessed in around 15 minutes on Experts Exchange.

-Mike Kapnisakis, Warner Bros