我有一个rss xml feed.my xml feed
<?xml version="1.0" encoding="UTF-8" ?>
- <!-- Generated on Sat, 17 Dec 2011 16:40:23 +0530
-->
- <rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
- <channel>
<atom:link href="http://www.business-standard.com/rss/rss_icon.png" rel="self" type="application/rss+xml" />
- <title>
- <![CDATA[ Markets & Investing ->News Now
]]>
</title>
<link>http://www.business-standard.com/</link>
<description>The latest news from India's most respected business daily.</description>
<language>en-us</language>
<managingEditor>webtech@bsmail.in (Webmaster)</managingEditor>
<webMaster>webtech@bsmail.in (Webmaster)</webMaster>
<generator>PHP RSS Feed Generator</generator>
- <image>
<url>http://www.business-standard.com/india/images/logo_08.jpg</url>
<title>Business-Standard</title>
<link />
<width>248</width>
<height>146</height>
</image>
- <item>
- <title>
- <![CDATA[ Gold snaps 5-day losing streak, gains Rs 75
]]>
</title>
- <description>
- <![CDATA[ Snapping five-day losing streak, gold prices recovered Rs 75 to Rs 27,840 per 10 gram in the national capital today on buying at lower levels amid firm trend overseas.
]]>
</description>
<link>http://www.business-standard.com/india/news/gold-snaps-5-day-losing-streak-gains-rs-75/153154/on</link>
<pubDate>Sat, 17 Dec 2011 15:38:06 +0530</pubDate>
<guid isPermaLink="true">http://www.business-standard.com/india/news/gold-snaps-5-day-losing-streak-gains-rs-75/153154/on</guid>
</item>
-
答案 0 :(得分:0)
创建如下函数:
public List<string> listOfFeeds()
{
List<string> lst=new List<string>();
lst.add("FEED1");
lst.add("FEED2");
lst.add("FEED3");
return lst;
}
希望以上例子可以帮助你。如果没有,请解释你想要的东西。