0

Dear all,
i'm new in vbscript and i want to take a string from database and load it into xml dom object but i can't.
My code:

'Creating XML object
set xmlDoc=CreateObject("Microsoft.XMLDOM")
xmlDoc.async="false"
xmlDoc.load
MsgBox xmlDoc

for each x in xmlDoc.documentElement.childNodes
frmMyForm.timeinfo2.value=x.nodename
frmMyForm.timeinfo3.value=x.text
'document.write(x.nodename)
'document.write(": ")
'document.write(x.text)
next

2
Contributors
3
Replies
6
Views
7 Years
Discussion Span
Last Post by hielo
0

thnx for replying , but i tried this method loadXML and got the same o/p

0

...I want to take a string from database and load it into xml dom object but i can't.

You need to verify that your string is actually a valid xml string. Look at the example on the url I provided earlier. Notice that the variable XMLString has a "complete" xml string. You need to do the same. Most likely you are trying to initialize it with an invalid xml string.

This topic has been dead for over six months. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.