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).
Dear Nafiz, Is there an error message, warning, or notice? What's the symptoms? Have you started the BaseX server?
Kind regards Michael
On 31.01.2012, at 07:28, "Nafiz Al Naharul Islam Grameenphone IT Ltd." nnislam@grameenphone.com wrote:
The xquery is fine in basex GUI mode but not working in php
Just a quick note, CC to the list:
Problem solved, it turned out that in factbook.xml the lake elements have no text contents:
<lake id="f0_38219" name="Caspian Sea" area="424200"/>
hence, the Browser did not render any text and it seemed there was no result.
Kind regards Michael Am 31.01.2012 um 08:40 schrieb Michael Seiferle:
Dear Nafiz, Is there an error message, warning, or notice? What's the symptoms? Have you started the BaseX server?
Kind regards Michael
On 31.01.2012, at 07:28, "Nafiz Al Naharul Islam Grameenphone IT Ltd." nnislam@grameenphone.com wrote:
The xquery is fine in basex GUI mode but not working in php
BaseX-Talk mailing list BaseX-Talk@mailman.uni-konstanz.de https://mailman.uni-konstanz.de/mailman/listinfo/basex-talk
basex-talk@mailman.uni-konstanz.de