title: Parse XML file in Powershell
body: <p>I am trying to retrieve Exchange Rates from Yahoo</p>
  
  <pre><code>$browser = New-Object System.Net.WebClient
  $browser.Proxy.Credentials =[System.Net.CredentialCache]::DefaultNetworkCredentials 
  
  $url = 'http://finance.yahoo.com/webservice/v1/symbols/allcurrencies/quote'
  $xml = New-Object xml
  $xml.Load($url)
  
  [xml]$YahooDataDocument = $xml.InnerXml
  $YahooDataDocument.List.resources.resource | format-table name,price
  </code></pre>
  
  <p>But I am unable to get the data as required, I only get:</p>
  
  <pre>
  Name     price
  ----     -----
  resource      
  resource      
  resource      
  resource      
  resource      
  .
  .
  ..
  </pre>