You don't need to save an XML file to disk, you can just send XML directly to the browser instead, like this:
Code:
<% ' do not output any HTML before this, instead tell the browser we're sending XML
Response.ContentType = "text/xml"
' declares variables .......
n = Request.Item("amount") ' input1
strCode = "'" & Request.Item("account") & "'" ' input2
' .......calls database using n and strCode to find
i = CInt(Trim(rS.Fields(0)))
Response.Write("<?xml version=""1.0"" standalone=""yes""?>")
Response.Write("<NOK>")
Response.Write(i)
Response.Write("</NOK>")
%>