If I get an error message like this:
[XPST0003] Incomplete 'let' expression.
How can I find out more information regarding the error eg. the
name of the function that failed? The error message doesn’t give any clue
about where the error occurred.
I’m using PHP. My code is based on the example code
supplied with BaseX.
<?php
include("BaseXClient.php");
$CMD_OPEN
= "open cgd-dat"; //
BaseX command to open the database.
$xq
= "xquery ... a long xquery"; // BaseX xquery
command.
try
{
$session
= new Session("localhost", 1984, "admin",
"admin");
$session->execute($CMD_OPEN);
print
$session->execute($xq);
$session->close();
} catch
(Exception $e) {
print
$e->getMessage();
}
?>