2012-02-15 49 views

回答

0

你需要DOMDocument哦PHP5

$xml = new DOMDocument(); 
$xml->loadXML($xml_data); // $xml_data is the contents of metadata.xml 
$tags = $xml->getElementsByTagName(""); // put your tag name here. 
foreach($tags as $tag){ 
    // further process the tags 
} 
+0

謝謝你,解決了我的問題。 ;) – user1210746 2012-02-15 10:04:26