Contents of xml4e.asp:
<html>
<body>
ASP to put a string of XML into the XMLDOM
<p>
Here is the string:<p>
<toptag><first>1</first><second>2</second><third>3</third></toptag>
<p>
<%
xmls="<toptag><first>1</first><second>2</second><third>3</third></toptag>"
Set xmla = Server.CreateObject("Microsoft.XMLDOM")
xmla.loadXML(xmls)
set root=xmla.documentElement
response.write "Here is the data from the XMLDOM:"
for i= 0 to root.ChildNodes.Length-1
response.write "<br>child="+cstr(i)+" value="+root.childNodes(i).text+chr(10)+chr(13)
next
set root=nothing
%>
</body></html>
***** end of file *** printed: 24 lines on: 5/16/2012 6:19:28 AM