Ciao a tutti, dovrei estrarre da un file XML una variabile che si chiama "tel:name" ovviamente mi da errore l'XML è questo:
ciò che uso per estrarre questocodice:<content type="text"> Meier, John Marienfeldstrasse 92 8252 Schlatt/TG *052 654 42 30 </content> <autor> <name>tel.search.ch</name> </autor> <link href="http://tel.search.ch/detail/b4f420fda52419f2" title="Details" rel="alternate" type="text/html"/> <link href="http://tel.search.ch/vcard/Meier.vcf?key=b4f420fda52419f2" type="text/x-vcard" title="VCard Download" rel="alternate"/> <link href="http://tel.search.ch/edit/?id=b4f420fda52419f2" rel="edit" type="text/html"/> <tel:pos>1</tel:pos> <tel:id>b4f420fda52419f2</tel:id> <tel:type>Person</tel:type> <tel:name>Meier</tel:name> <tel:firstname>John</tel:firstname> <tel:occupation/> <tel:street>Marienfeldstrasse</tel:street> <tel:streetno>92</tel:streetno> <tel:zip>8252</tel:zip> <tel:city>Schlatt</tel:city> <tel:canton>TG</tel:canton> <tel:phone>+41526544230</tel:phone> </entry>
ovviamente "tel:name" non lo estrae perchè il PHP da errore, come faccio?codice:$xml = simplexml_load_file("http://tel.book.com........................"); echo $xml->entry[0]->tel:name;
Grazie, saluti.

Rispondi quotando