2013-12-10 257 views

回答

0

嘗試了這一點:

<?php 
$xml = simplexml_load_file("ctlocation.EN.xml") 
     or die("Error: Cannot create object"); 
foreach($xml->Country as $loc){ 
    $name = $loc[0]['name']; 
    echo $name; 
    echo "<br />"; 
} 
?> 
+1

這工作!非常感謝! – Esteban89

+0

如何解析位置? – Esteban89