Ver Mensaje Individual
  #3 (permalink)  
Antiguo 18/01/2011, 11:24
victorcastella
 
Fecha de Ingreso: enero-2011
Mensajes: 4
Antigüedad: 13 años, 3 meses
Puntos: 0
Pregunta Respuesta: PHP Beginner - Problemas con los tags HTML

Hola Ronruby,

Tengo la siguiente función para cargar la información:

function buscarInfo($id_info){

$archivo='http://xml<...........>;

$xml = simplexml_load_file($archivo);

return $xml;
}

Y después otra función para escribir el texto:

function pintarInfo($xml)
{
echo "<table width=1250 height=600 border=1>";
echo "<tr>";
echo "<td width=1000 align=left valign=top>";

echo "xml->nombre";
echo "xml->desc1";

echo "</td>";
echo "</tr>";
echo "</table>";

}

El texto de desc1 lo escribe pero tambien incluye los tags HTML...

Gracias por tu interés.

Saludos