1
我不明白如何從cdr files的metadata.xml中讀取標籤。謝謝你的幫助。如何使用PHP從Corel文件讀取xml元數據?
我不明白如何從cdr files的metadata.xml中讀取標籤。謝謝你的幫助。如何使用PHP從Corel文件讀取xml元數據?
你需要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
}
謝謝你,解決了我的問題。 ;) – user1210746 2012-02-15 10:04:26
可以顯示一個文件嗎? – 2012-02-15 08:17:48
這裏是文件http://pastebin.com/bXwLN1FE – user1210746 2012-02-15 08:46:06