RSS 订阅

<?xml version="1.0"?>
<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Rss.aspx.cs" Inherits="BookShop.Web.Rss" ContentType="text/xml"%>

<rss version="2.0">
<channel>
<title>XXX网站书店</title>
<description></description>
<link>http://www.bookshop.com</link>
<language>zh-cn</language>
<docs></docs>
<ttl>5</ttl>

<asp:Repeater runat="server" ID="RepeaterRss">
<ItemTemplate>
<item>
<title><%#Eval("Title") %></title>
<link><%#Eval("id","http://www.bookshop.com/BookDetail.aspx?id={0}") %></link>
<pubDate><%#Eval("PublishDate") %></pubDate>
<source>XXX网站书店</source>
<author><%#Eval("Author") %></author>
<description><![CDATA[<%#Eval("ContentDescription") %>]]></description>
</item>
</ItemTemplate>

</asp:Repeater>


</channel>
</rss>

原文地址:https://www.cnblogs.com/qiuyueguangxuan/p/3991706.html