2012-02-15 81 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