如何使用此RSS獲取匯率,以便在我的應用程序中使用它?RSS C#獲取匯率
http://www.rba.gov.au/statistics/frequency/exchange-rates.html
如何使用此RSS獲取匯率,以便在我的應用程序中使用它?RSS C#獲取匯率
http://www.rba.gov.au/statistics/frequency/exchange-rates.html
看一看的System.ServiceModel.Syndication namespace。您可以使用SyndicationFeed.Load()方法是這樣的:
XmlReader reader = XmlReader.Create("http://www.rba.gov.au/rss/rss-cb-exchange-rates.xml");
SyndicationFeed feed = SyndicationFeed.Load(reader);
您應該使用this鏈接以獲取RSS源。
而且這是一個重複的問題check this
有內置的框架,這是由該網站曝光,所以你可以使用third party library在飼料中使用的格式不RDF讀者。
+1對於良好的答案和鏈接到MSDN頁面更多信息 – Bazzz 2011-04-19 06:58:18