Ignacio Hernandez-Ros wrote:
Hello,
I'll try to send a patch.
This is what happens when the query is executed in MapiClient.
[ihr@jo-con-el FRTA2]$ cat > test.xq <hello>hola</hello> [ihr@jo-con-el FRTA2]$ MapiClient -lxquery test.xq <hello>hola</hello> [ihr@jo-con-el FRTA2]$
And this is what happens when the query is executed in MapiClient using mil language.
[ihr@jo-con-el FRTA2]$ MapiClient -lmil # Monet Database Server V4.9.0 # Copyright (c) 1993-2005, CWI. All rights reserved. # Compiled for i686-pc-linux-gnu/32bit with 32bit OIDs; dynamically linked. # Visit http://monetdb.cwi.nl/ for further information. mil>xquery("xml","<hello>hola</hello>"); <?xml version="1.0" encoding="utf-8"?> <XQueryResult> <hello>hola</hello> </XQueryResult> mil>
The result of an xquery is not a table with rows and columns. Is another piece of XML that I don't know how to get it back into the PHP code.
As far as I know, this should be represented as one column. Maybe it isn't. Sjoerd will know the answer. Perhaps it works better for you in this case if you use the xquery language, instead of mil from your PHP script. Again, I think Sjoerd knows for sure how the response is given shape.
What you sent me didn't work. Thank you for your support. Are there more alternatives?
Regards, IHR
Ignacio Hernandez-Ros XBRL International Inc. - Technology Development ihr@xbrl.org Cell: +34 609027754