Instale el sistema phpMyHotels de la siguiente direccion:
http://sourceforge.net/projects/phpmyhotels/
Pero me aparece el siguiente error en el index.php
Warning: Sablotron error on line 4: XML parser error 9: junk after document element in /home/usuario/public_html/booking/index.php on line 31
Sorry, XML code could not be transformed. The reason is XML parser error 9: junk after document element and the error code is 2
La linea 31 es estas:
$result = xslt_process($xh, 'arg:/_xml', $GLOBALS['rootpath'].'/layouts/layDefault.xsl', NULL, $arguments);
No esntiendo que puede ser, algo mal en el config.php???
Aqui dejo todo el codigo del index.php:
---------------------------------------------------------------
# otherwise we perform output buffering and XSLT processing
if (!isset($attributes['stoplayout']))
ob_start();
require("fbx_Fusebox3.0_PHP4.1.x.php");
if (!$attributes['stoplayout']) {
$xml = ob_get_contents();
$xml = '<?xml version="1.0" encoding="utf-8"?>'.$xml;
ob_end_clean();
ob_end_flush();
# If debug mode activated write XML into /tmp/out.xml to ease debugging
if ($GLOBALS['CONFIG']['DEBUG']) {
$fp = fopen($GLOBALS['CONFIG']['DEBUGFILE'], 'w');
fwrite ($fp, $xml);
fclose($fp);
}
$arguments = array('/_xml' => $xml);
# Allocate a new XSLT processor
$xh = xslt_create();
# Process the document
$result = xslt_process($xh, 'arg:/_xml', $GLOBALS['rootpath'].'/layouts/layDefault.xsl', NULL, $arguments);
if ($result) {
print $result;
} else {
print 'Sorry, XML code could not be transformed. ';
print 'The reason is <b>' . xslt_error($xh) . '</b>';
print ' and the error code is ' . xslt_errno($xh);
}
xslt_free($xh);
}
?>
---------------------------------------------------------------