korasoglu Posted April 6 Share Posted April 6 Arkadaşlar döviz kurlarını listelemek istiyorum internette bol miktarda örnek mevcut fakat hepsi aynı hatayı vererek listeleme yapmıyor. Sizden çalışan bir örnek veya yardım etmenizi talep ediyorum XmlDocument xmlVerisi = new XmlDocument(); xmlVerisi.Load("http://www.tcmb.gov.tr/kurlar/today.xml"); decimal dolar = Convert.ToDecimal(xmlVerisi.SelectSingleNode(strin g.Format("Tarih_Date/Currency[@Kod='{0}']/ForexSelling", "USD")).InnerText.Replace('.', ',')); decimal euro = Convert.ToDecimal(xmlVerisi.SelectSingleNode(strin g.Format("Tarih_Date/Currency[@Kod='{0}']/ForexSelling", "EUR")).InnerText.Replace('.', ',')); decimal sterlin = Convert.ToDecimal(xmlVerisi.SelectSingleNode(strin g.Format("Tarih_Date/Currency[@Kod='{0}']/ForexSelling", "GBP")).InnerText.Replace('.', ',')); Link doğru kullanım doğru ama çalışmıyor. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.