title: Parsing an XML from an URL
body: <p>I'm pasing an XML from an URL <code>http://finance.yahoo.com/webservice/v1/symbols/allcurrencies/quote</code></p>
  
  <p>and i'm creating a php, to convert BRL to USD</p>
  
  <p>The Website above, show all conversions, i'm trying to get so BRL/USD</p>
  
  <p>My code: </p>
  
  <pre><code>&lt;?php
  
  $file = file_get_contents('http://finance.yahoo.com/webservice/v1/symbols/allcurrencies/quote');
  $xml=simplexml_load_string($file) or die("Error: Cannot create object");
  foreach($xml-&gt;resources-&gt;resource as $resource) {
      echo $resource-&gt;$field;
  }
  </code></pre>
  
  <p>How to get so BRL/USD?</p>