Using this URL from European Central Bank:
www.ecb.europa.eu/stats/eurofxref/eurofxref-daily.xml
I would like to import the currency symbol and rate into a Dictionary or object. I've got it reading into an xml doc but I'm having trouble picking out the node attributes.
Thanks
string xmlString;
using (var client = new WebClient())
{
xmlString = client.DownloadString("http://www.ecb.europa.eu/stats/eurofxref/eurofxref-daily.xml");
}
var xmlDoc = new XmlDocument();
xmlDoc.LoadXml(xmlString);
foreach(XmlNode node in xmlDoc.SelectNodes("//*/Cube/@currency"))
{
// add currency and rate to dictionary
}