Dear All,
I’m using factbook.xml and in php trying to return a node value in php and xquery.
The xquery is fine in basex GUI mode but not working in php
Here is the php code ………………………
<?php
include("BaseXClient.php");
$CMD_OPEN = "open input";
$xq = "XQUERY //mondial/lake[@id='f0_39401']";
try {
$session = new Session("localhost", 1984, "admin", "admin");
$session->execute($CMD_OPEN);
print $session->execute($xq);
$session->close();
} catch (Exception $e) {
print $e->getMessage();
}
?>
I’m waiting for your early response as it’s my course assignment and left very few hours
L.
Regards,
Nafiz -Al Naharul Islam