Ver Mensaje Individual
  #1 (permalink)  
Antiguo 17/01/2014, 08:00
mktalternativa
 
Fecha de Ingreso: enero-2012
Mensajes: 224
Antigüedad: 12 años, 3 meses
Puntos: 1
lectura de XML

Hola quiero usar simple xml para leer un xml el tema es que el xml nose si esta bien armado

http://www.toucharound.com/horoscopo/xml/daily_es.xml


por que no tiene la cabecera que lo asigna como xml y dice esto

This XML file does not appear to have any style information associated with it. The document tree is shown below.


Y esto estoy usando para leerlo nose si esta bien

Código PHP:

<?php
include 'http://www.toucharound.com/horoscopo/xml/daily_es.xml';

$horoscopo = new SimpleXMLElement($xmlstr);

echo 
$horoscopo->pelicula[1]->message;
?>