Welcome to WebmasterWorld Guest from 54.196.232.162

Forum Moderators: bill & werty

Message Too Old, No Replies

building an RSS feed from Access database?

I'm currently editing the XML manually, but I want to automate

     
9:56 am on Aug 19, 2006 (gmt 0)

Junior Member

10+ Year Member

joined:Feb 13, 2004
posts:97
votes: 0


Hey folks,

Here's a question for the crowd, I have an rss feed on my site that has on it all the forthcoming events from our calendar of events.

Right now, I edit the xml manually - adding a new one of these:

<item>
<title>5 October 2010 - to - 8 October 2010</title>
<link>http://www.fakesite.org/calendar/event_display.asp?date=10-05-2006#87</link>
<description>Description of fake event</description>
</item>

for each new forthcoming event in our calendar.

But, this calendar is in ASP, and all the events and dates and such are in an access database..

soooo... is there any way for me to automate the process of building this feed? how do I go about makeing an XML file using the data from my Access database and standard ASP?

any ideas for me?

cheers!

Stratus

12:33 pm on Aug 19, 2006 (gmt 0)

Junior Member

10+ Year Member

joined:Jan 26, 2005
posts:46
votes: 0


Sure.
Query your access database than dinamically create your feed from database.

To create the feed just "write" the content.

For example

Do While Not objRs.EOF
Response.Write("<item>")
Response.Write("<title>" & objRs("Title") & "</title>")
Response.Write("<link>" & objRs("Link") & "</link>")
Response.Write("<description>" & objRs("Description") & "</description>")
Response.Write("</item>")
objRs.MoveNext
Loop

4:21 pm on Aug 20, 2006 (gmt 0)

Junior Member

10+ Year Member

joined:Feb 13, 2004
posts:97
votes: 0


Hi!

thanks, yes I thought of that.. but that will make my RSS file a .asp file right? and dosn't it need to be a .xml file?

stratus