Jump to content


Photo

Simplexml_load_file


  • Faça o login para participar
1 reply to this topic

#1 kboing

kboing

    Normal

  • Usuários
  • 77 posts
  • Sexo:Não informado

Posted 03/04/2008, 18:28

Como pegar os dados (como tilte ou keywords) deste exemplo de xml usando simplexml_load_file

<media:group>
<media:title type="plain">TITULO</media:title>
<media:description type="plain">AQUI DESCRICAO</media:description>
<media:keywords>PALAVRA1, PALAVRA2, PALAVRA3</media:keywords>
<yt:duration seconds="270" />
<media:category label="Test" scheme="http://teste.com.br"...media:category>
<media:player url="http://www.teste.com.br/teste1" />
<media:thumbnail url="http://www.teste.com...br/teste12.jpg" height="97" width="130" time="02:15" />
<media:thumbnail url="http://www.teste.com...br/teste11.jpg" height="97" width="130" time="01:07" />
<media:thumbnail url="http://www.teste.com...br/teste13.jpg" height="97" width="130" time="03:22" />
</media:group>


consigo pegar dados de xmls padrão, com namespaces não estou conseguindo. Se alguém puder ajudar, agradeço.
Edson

#2 Felipe Pena

Felipe Pena

    O temor do Senhor é o princípio da sabedoria

  • Ex-Admins
  • 6441 posts
  • Sexo:Masculino

Posted 03/04/2008, 19:52

Acho que isso deve ajudar você:
http://www.sitepoint...and-namespaces/
Felipe Pena
[...] ó terra, terra, terra; ouve a palavra do Senhor. — Jeremias 22:29




1 user(s) are reading this topic

0 membro(s), 1 visitante(s) e 0 membros anônimo(s)

IPB Skin By Virteq