<%
function StripHTML(ByRef asHTML)
		ashtml=replace(ashtml, "&", "and")
    	Dim loRegExp	' Regular Expression Object
    	
    	' Create built In Regular Expression object
    	Set loRegExp = New RegExp
		loRegExp.Global = True
    	' Set the pattern To look For HTML tags
    	loRegExp.Pattern = "<[^>]*>"
    	
    	' Return the original String stripped of HTML
    	StripHTML = loRegExp.Replace(asHTML, "")
    	
    	' Release object from memory
    	Set loRegExp = Nothing
		
    End function
	%>
<%	Response.ContentType = "text/xml" %><?xml version="1.0" ?> 
<rss version="2.0">
	<channel>
		<title>Shooterville.com RSS News Feed</title> 
		<link>http://www.hcdsb.org</link> 
		<description>This RSS feed will contain the latest news from Shoterville.com</description> 
		<copyright>Copyright (C) Shooterville.com All rights reserved.</copyright> 
		<generator></generator> 

		<% Set conn = Server.CreateObject("ADODB.Connection") %>
		<% conn.Open "DSN=SOROKO;uid=sa;pwd=rivermesa" %>

		<% set news = conn.execute("select top 1 * from p_news where ArchiveDate >= GetDate() and LiveDate <= GetDate() order by LiveDate  DESC") %>

		<% do while not news.eof %>
			<item>
				<title><% =news("subject") %></title>
				<link>http://www.shooterville.com/fullstory.asp?item=<% =news("ID") %></link>
				<description><% =striphtml(left(news("info"), InStr(200, news("info"), ". "))) %></description>
				<pubdate><% =news("livedate") %></pubdate>
			</item>
			<% news.movenext %>
		<% loop %>
	</channel>
</rss>