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 Westi on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

problem with Microsoft.XMLDOM

Status
Not open for further replies.

Guest_imported

New member
Jan 1, 1970
0
HI
I have faced some problem with Microsoft.XML dom object while i use it in ASP pages
The problem i can't use the methods of these object for Example when i write this code
dim XMLDoc
dim XMLIDoc
dim XMLItem,XMLItemDoc,XMLRoot
Set XMLDoc=server.createobject("Microsoft.XMLDOM")
XMLDoc.preserveWhiteSpace = True
XMLDoc.async=false
XMLDOC.load(XMLCart)
set XMLRoot=XMLDoc.documentElement
for n=0 to XMLRoot.ChildNodes.Lengh-1
<<< Here at the (for n=0 ext) i recieve the error XMLRoot Object required
also i did't use the xmlRoot but i use XMLDoc.documentElement i still have the same error

 
Hi,

First of all, I always use the progid &quot;msxml2.Domdocument&quot; when creating a domdocument object (msxml 3.0 SP1).

Further, what is stored in the variable XMLCart; a filename or a xml string?

If it is a filename, then you are using the correct syntax, else you should use the LoadXml method.

Good luck!

Jordi Reineman
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top