Here's the meat of the the rss.aspx that I use for blogabond.com. As
you can see, it's just a single repeater dumping out XML instead of
HTML. Couldn't be much simpler, though you'll need to remember to set
the ContentType on the server:
Page.Response.ContentType = "text/xml";
<?xml version="1.0" ?>
<rss version="2.0"
xmlns:dc="http://purl.org/dc/elements/1.1/"
xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
xmlns:sy="http://purl.org/rss/1.0/modules/syndication/">
<channel>
<title>Blogabond.com - Livin' large in the third world</title>
<link>http://www.blogabond.com/</link>
<description>Travel journals and photo blogs from world travellers.
Maps, research and resources for the aspiring vagabond.</description>
<dc:language>en-US</dc:language>
<dc:creator></dc:creator>
<copyright>Copyright © 2005, Blogabond.com</copyright>
<sy:updatePeriod>daily</sy:updatePeriod>
<sy:updateFrequency>1</sy:updateFrequency>
<sy:updateBase>1</sy:updateBase>
<asp:Repeater ID="rptComments" Runat=server>
<ItemTemplate>
<item>
<title><%# DataBinder.Eval(Container.DataItem,
"CommentTitle")%></title>
<description><![CDATA[<%# GetDescription(
DataBinder.Eval(Container.DataItem, "CommentText"),
DataBinder.Eval(Container.DataItem, "UserID") )%>]]></description>
<author><%# GetAuthorName( DataBinder.Eval(Container.DataItem,
"UserID") )%></author>
<category><%# GetLocationName( DataBinder.Eval(Container.DataItem,
"LocationID") )%></category>
<pubDate><%# GetPubDate( DataBinder.Eval(Container.DataItem,
"CommentDate") )%></pubDate>
<link>http://www.blogabond.com/TripView.aspx?tripID=<%#
DataBinder.Eval(Container.DataItem, "TripID")%></link>
<guid
isPermaLink="true">http://www.blogabond.com/CommentView.aspx?commentID=<%#
DataBinder.Eval(Container.DataItem, "CommentID")%></guid>
<slash:comments>0</slash:comments>
</item>
</ItemTemplate>
</asp:Repeater>
</channel>
</rss>
Jason Kester
Expat Software Consulting Services
http://www.expatsoftware.com/
---
Get your own Travel Blog, with itinerary maps and photos!
http://www.blogabond.com/