Is it possible to filter an RSS feed? What I mean is this, this is a sample of my RSS feed. As you can see, I have a category
tag. Now, is it possible to filter by <category>
?
Right now, the filtering functionality is done in code. Is there a better way to do it organically in RSS feeds itself?
<?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>
No, you can't do it in the "feed" itself. The feed is just a "format". You have to use some kind of code (be it XSLT transformation, a parser or... ) to discard the content which is of no interest to you.