How can I read xml metadata from a Corel file with PHP?
Pergunta
I don't understand how I can read tags, from a metadata.xml of a cdr files. Thanks for any help.
Solução
You need DOMDocument oh 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
}
Licenciado em: CC-BY-SA com atribuição
Não afiliado a StackOverflow