Hi,
I believe, sedna_load() function expects the second argument to be the *
document* *itself*, not the *document's path*. I agree, that PHP driver
documentation is unclear here. We'll fix it.
Ivan Shcheklein,
Sedna Team
2009/6/15 Πρεκατές Αλέξανδρος <[email protected]>
> Hi i've set up a simple php script to test a xquery.
>
>
> <?php
> echo "sedna-pc-eg"
> $conn = sedna_connect("localhost","pc");
> sedna_load($conn,"pc.xml","pc");
>
> $queryexec = sedna_execute($conn,
> 'for $b in document("pc")/pc/user/name return $b/text()'
> );
> //fetch the results
> $result=array();
> $result=sedna_result_array($conn);
> foreach($result as $key)
> {
> echo ($key."\n");
> }
> //close connection
> sedna_close($conn);
> ?>
>
> The problem is that it works only if i load the pc.xml file with
> *se_term -file load_data_xquery pc*
> with load_data_query containing
> LOAD "pc.xml" "pc"
>
> So it seems to me that sedna_load(..) doesnt work.
>
>
>
> aprekates
>
>
>
>
> (ps: thanks Ivan Shcheklein for helping me with 64-bit php-driver)
>
>
> ------------------------------------------------------------------------------
> Crystal Reports - New Free Runtime and 30 Day Trial
> Check out the new simplified licensing option that enables unlimited
> royalty-free distribution of the report engine for externally facing
> server and web deployment.
> http://p.sf.net/sfu/businessobjects
> _______________________________________________
> Sedna-discussion mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/sedna-discussion
>
------------------------------------------------------------------------------
Crystal Reports - New Free Runtime and 30 Day Trial
Check out the new simplified licensing option that enables unlimited
royalty-free distribution of the report engine for externally facing
server and web deployment.
http://p.sf.net/sfu/businessobjects
_______________________________________________
Sedna-discussion mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/sedna-discussion