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