<%
response.ContentType="text/xml"
response.Write("<?xml version='1.0' encoding='ISO-8859-1'?>") 
Dim objconn
objconn = "Driver={Microsoft Access Driver (*.mdb)};DBQ=" & Server.MapPath("main.mdb")
strsql="SELECT TOP 10 * FROM main ORDER BY id DESC"
set RSitem =  objconn.execute(strsql)
%>
<rss version="2.0">
<channel>
	<title>Title goes here</title>
	<link>http://www.mysite.co.uk</link>
	<description>Information about the the feed goes here.</description>
	<language>en</language>
	<copyright>Copyright 2008. My Site</copyright>
	<pubDate><%date()%></pubDate>
    <ttl>60</ttl>
    <%Do While Not RSitem.EOF%>
    <%
'make the object MsXML2.DOMDocument
Set xmlDoc = Server.CreateObject("msxml2.DOMDocument")
%>
	<item>
		<title><![CDATA[ <%=(RSitem("title"))%>]]></title>
		<link>http://www.mysite.co.uk/items/info.asp?itemid=<%=(RSitem("title"))%></link>
		<description><![CDATA[<%=(RSitem("intro"))%>]]></description>
		<pubDate><%=RSitem("userdate")%></pubDate>
	</item>
	<%
		RSitem.MoveNext
		Loop
	%>
</channel>
</rss>