<!--#include file="conn.asp"-->
<%
set rs=server.CreateObject("adodb.recordset")
sql="select * from gonggao"
rs.open sql,conn,1,3
Response.Buffer = flase
%>
<?xml version="1.0" encoding="gb2312"?>
<rss version="2.0">
<channel>
<%
 rs.MoveLast		' 将目前的数据记录移到第一项
  While Not rs.BOF	' 判断是否过了最后一项
%>

<item>
    <title><%=rs(1)%></title>
    <link><%=rs(0)%></link>
    <pubDate><%=rs(2)%></pubDate>
    <data>gonggao</data>
</item>

<%
 rs.MovePrevious	' 移到下一项
Wend
rs.close
set rs=nothing
%>



</channel>