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.C ontentType = "text/xml";
<?xml version="1.0" ?>
<rss version="2.0"
xmlns:dc="http://purl.org/dc/elements/1.1/"
xmlns:slash="ht tp://purl.org/rss/1.0/modules/slash/"
xmlns:sy="http://purl.org/rss/1.0/modules/syndication/">
<channel>
<title>Blogabon d.com - Livin' large in the third world</title>
<link>http://www.blogabond.c om/</link>
<description>Tr avel 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>Copy right © 2005, Blogabond.com</copyright>
<sy:updatePerio d>daily</sy:updatePeriod >
<sy:updateFrequ ency>1</sy:updateFreque ncy>
<sy:updateBase> 1</sy:updateBase>
<asp:Repeater ID="rptComments " Runat=server>
<ItemTemplate >
<item>
<title><%# DataBinder.Eval (Container.Data Item,
"CommentTitle") %></title>
<description> <![CDATA[<%# GetDescription(
DataBinder.Eval (Container.Data Item, "CommentTex t"),
DataBinder.Eval (Container.Data Item, "UserID") )%>]]></description>
<author><%# GetAuthorName( DataBinder.Eval (Container.Data Item,
"UserID") )%></author>
<category><%# GetLocationName ( DataBinder.Eval (Container.Data Item,
"LocationID ") )%></category>
<pubDate><%# GetPubDate( DataBinder.Eval (Container.Data Item,
"CommentDat e") )%></pubDate>
<link>http://www.blogabond.c om/TripView.aspx?t ripID=<%#
DataBinder.Eval (Container.Data Item, "TripID")%> </link>
<guid
isPermaLink="tr ue">http://www.blogabond.c om/CommentView.asp x?commentID=<%#
DataBinder.Eval (Container.Data Item, "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/