Ver Mensaje Individual
  #1 (permalink)  
Antiguo 18/11/2003, 14:35
Avatar de gabyweb
gabyweb
 
Fecha de Ingreso: enero-2002
Ubicación: Lima
Mensajes: 364
Antigüedad: 22 años, 4 meses
Puntos: 0
XML y PHP : Pagina no puede ser mostrada

Hola, tengo este codigo :

$wEmpresa = 28;

$strSQL = "SELECT * FROM curriculums";
$strSQL = $strSQL. " WHERE Empresa=" .intval($wEmpresa);
$strSQL = $strSQL. " ORDER BY Nombre";
$strSQL = $strSQL. ", Apellidos";
$strSQL = $strSQL. ", Fecha";
$query=MySQL_query($strSQL);
echo '<?xml version="1.0" encoding="ISO-8859-1"?>';
while($ds = mysql_fetch_array($query))
{
echo '
<curri nro="'.$ds["CurriculumNr"].'">
<datos>';
echo '
<nombre>'.$ds["Nombre"].'</nombre>
<apellidos>'.$ds["Apellidos"].'</apellidos>
</datos>';
echo '</curri>';
}
?>
Al ejecutarlo me sale este mensaje

The XML page cannot be displayed
Cannot view XML input using XSL style sheet. Please correct the error and then click the Refresh button, or try again later.


--------------------------------------------------------------------------------

Only one top level element is allowed in an XML document. Error processing resource 'http://servlima/ambitcomercio/comercioweb/comercioonline/empresas/empresa28/scripts/gw28curriculumswin/culistaxml.php'. Line 11, Position 3

<curri nro="9">

POR FA QUE ES LO QUE ESTA PASANDO NO LO ENTIENDO....

gracias
__________________
Gaby :adios: