xml - Shay Levy

Shay Levy

If you repeat it, $CRIPT it!

Browse by Tags

All Tags » xml (RSS)
Bank Of Israel - Currency exchange rates
In this post (hebrew), Shlomo Goldberg , shows how we can receive currency exchange rates from Bank Of Israel website in C#. This is a great way to show how with a few lines of code we can get the rates with PowerShell . We create a webclient object, use its DownloadString method and cast the result to XML using PowerShell 's XML type shortcut and then we format the results: $wc = New-Object System.Net.WebClient $rates = [ xml ] $wc .DownloadString( " http://www.bankisrael.gov.il/currency...