Hi all,Im trying to do something pretty basic, read a set of values from an xml file and set variables depending not them, I can read the xml file perfectly, but cant work out how to set and name variables based on them. Can anyone help?
Here is the script I have so far:
Set xmlDOC = Server.CreateObject("Microsoft.XMLDOM")
xmlDoc.async = False
'load xml file
for each x in xmlDoc.documentElement.childNodes
response.write(x.nodeName & "<br />")
response.write(x.childnodes(0).nodeValue & "<br />")
and here is the xml
<body>Don't forget me this weekend!</body>
So in the case above it would create the variable "to" and set the value to "Tove", and the variable "from" and set it to "Jani" etc, basically more variables can be added and removed from the XML file.
Can anyone help?