I cannot parse XML ( http://finance.yahoo.com/webservice/v1/symbols/allcurrencies/quote ) The document is taken normally, a Simple XML object is created, but I cannot select any element, I do this:
include 'func.lib.php'; include 'simple_html_dom.php'; //Π·Π°Π³ΡΡΠΆΠ°Π΅ΠΌ ΡΡΡΠ°Π½ΠΈΡΠΊΡ ΠΏΡΠΈ ΠΏΠΎΠΌΠΎΡΠΈ ΡΡΠ½ΠΊΡΠΈΠΈ cURL $a = getLink('http://finance.yahoo.com/webservice/v1/symbols/allcurrencies/quote'); $xml = simplexml_load_string($a); echo $xml->resourse[0]->field[2];
does not print anything, tell me what I'm doing wrong.