Saving XML To a File Using ASP

by satheesh 2010-02-04 19:52:20

Saving XML To a File Using ASP
*****************************

This ASP example creates a simple XML document and saves it on the server:
<%
text="<note>"
text=text & "<to>Tove</to>"
text=text & "<from>Jani</from>"
text=text & "<heading>Reminder</heading>"
text=text & "<body>Don't forget me this weekend!</body>"
text=text & "</note>"

set xmlDoc=Server.CreateObject("Microsoft.XMLDOM")
xmlDoc.async="false"
xmlDoc.loadXML(text)

xmlDoc.Save("test.xml")
%>

Tagged in:

865
like
0
dislike
0
mail
flag

You must LOGIN to add comments