筛选RSS源
可以过滤RSS提要吗?我的意思是,这是我的RSS提要的一个示例。如您所见,我有一个筛选RSS源,rss,rss-reader,rss2,Rss,Rss Reader,Rss2,可以过滤RSS提要吗?我的意思是,这是我的RSS提要的一个示例。如您所见,我有一个类别标记。现在,是否可以按进行过滤 现在,过滤功能是在代码中完成的。有没有更好的方法在RSS提要中有机地实现这一点 <?xml version="1.0" encoding="utf-8" ?> <rss version="2.0" xmlns:media="http://search.yahoo.com/mrss/" xmlns:atom="http://www.w3.org/2005/Atom
类别
标记。现在,是否可以按
进行过滤
现在,过滤功能是在代码中完成的。有没有更好的方法在RSS提要中有机地实现这一点
<?xml version="1.0" encoding="utf-8" ?>
<rss version="2.0" xmlns:media="http://search.yahoo.com/mrss/" xmlns:atom="http://www.w3.org/2005/Atom">
<channel>
<language>en</language>
<copyright></copyright>
<category><![CDATA[Outdoor_Decor]]></category>
<item>
<title><![CDATA[It’s Linner Time! ]]></title>
<link>http://marilyn.localhost/Entertaining/segments/Daily/August2013/08_01_2013/LinnerDecor</link>
<description><![CDATA[]]></description>
<pubDate>1/1/0001 12:00:00 AM</pubDate>
<media:thumbnail url="http://marilyn.localhost/getattachment/903cf7b4-3016-4b09-b992-b54a1819a13a/RSSFeeds/Feeds1?height=349&width=620&crop=True" />
</item>
</channel>
</rss>
EN
http://marilyn.localhost/Entertaining/segments/Daily/August2013/08_01_2013/LinnerDecor
1/1/0001 12:00:00 AM
不,您不能在“提要”本身中执行此操作。提要只是一种“格式”。您必须使用某种代码(即XSLT转换、解析器或…)来放弃对您不感兴趣的内容。您也可以考虑在服务器上提供多个源。例如,WordPress提供了一个包含所有类别信息的整体RSS提要,以及每个类别的单独RSS提要,客户端可以订阅他们想要的任何内容。但正如朱利安所说,RSS只是一种格式;您需要服务器端或客户端代码来对其执行不同的操作。