How i get specific data on xml file?
===

How i get specific data only Kod attribute is USD and GBP on xml file?Is there a method for fetching attribute value?


TODAY.XML:

    <?xml version="1.0" encoding="iso-8859-9"?>
        <Tarih_Date Tarih="27.07.2012" Date="07/27/2012">
            <Currency Kod="USD" CurrencyCode="USD">
                <CurrencyName>US DOLLAR</CurrencyName>
                <ForexBuying>1.81</ForexBuying>
                <ForexSelling>1.8187</ForexSelling>
            </Currency>
            <Currency Kod="EUR" CurrencyCode="EUR">
                <CurrencyName>EURO</CurrencyName>
                <ForexBuying>2.2227</ForexBuying>
                <ForexSelling>2.2334</ForexSelling>
            </Currency>
            <Currency Kod="GBP" CurrencyCode="GBP">
                <CurrencyName>POUND STERLING</CurrencyName>
                <ForexBuying>2.841</ForexBuying>
                <ForexSelling>2.8559</ForexSelling>
            </Currency>
        </Tarih_Date>


PHP:

    <?php
    	$get_url = "today.xml";
    	$xml = simplexml_load_file($get_url) or die("Error : Cannot create object!");
    	
    	foreach($xml-> Currency as $currency){
    		 //$attr = $currency -> attributes();
    		 echo $attr."<br/>";
    		 //echo $currency -> CurrencyName;
    		//echo $data -> CurrencyName ."-". $data -> ForexBuying ."-". $data -> ForexSelling ."<br/>";
    	}
    ?>

 