开发者

RSS C# to get exchange rates

开发者 https://www.devze.com 2023-02-26 10:30 出处:网络
How do I use this RSS to get the exchange rates so I can use it in my app? http://www.rba.gov.au/statistics/frequency/exchange-rate开发者_如何学Cs.htmlHave a look at the System.ServiceModel.Syndicati

How do I use this RSS to get the exchange rates so I can use it in my app?

http://www.rba.gov.au/statistics/frequency/exchange-rate开发者_如何学Cs.html


Have a look at the System.ServiceModel.Syndication namespace. You can use SyndicationFeed.Load() method like this:

XmlReader reader = XmlReader.Create("http://www.rba.gov.au/rss/rss-cb-exchange-rates.xml");
SyndicationFeed feed = SyndicationFeed.Load(reader);


There is no RDF reader built into the framework which is the format used in the feed exposed by this site so you could use a third party library.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号