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

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

...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.