利用ASP生成XML文档!!(源码)

发表于:2007-06-30来源:作者:点击数: 标签:
<%
set conn=server.createobject("adodb.connection")
conn.open applicatio("connstring")
set rs=server.createobject("Adodb.recordset")
sql="select * from table order by id desc"
rs.open sql,conn
do while not rs.eof
   msg=msg & rs("字段1") & chr(9) & rs("字段2) & vbcrlf
   rs.movenext
loop
set f=server.createobject("scripting.filesystem")
set myfile=f.createotextfile(mappath.server(xmllover.xls),true)
%>
已生成xmllover.xls!!!!

原文转自:http://www.ltesting.net