$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

