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 :(.
Regards,
Nafiz -Al Naharul Islam
________________________________
The information contained in this email and any attachment(s) to this email are intended for the exclusive use of the addressee(s) and may contain proprietary, confidential or privileged information. If you are not the intended recipient and have received this email and/or its attachment(s) in error, you are notified that disclosing, copying, distributing or taking any action in reliance on the contents of this email and/or its attachment(s) is strictly prohibited. Please notify the sender immediately and delete this email and any attachments.
WARNING: Computer viruses can be transmitted via email. Although GPIT has taken reasonable precautions to ensure no viruses are present in this email and/or its attachment(s), GPIT does not guarantee that this email and/or its attachments are secure or error-free. The recipient should check this email and any attachment(s) for the presence of viruses. GPIT shall accept no liability whatsoever for any loss or damage arising from the use of this email and/or its attachment(s).