Hi Christian,

your changes work perfectly, thanks!  I have updated the simple-basex client to support query preparation and multiple query execution:  https://github.com/hanshuebner/simple-basex

Cheers,
Hans


On Mon, Feb 25, 2013 at 11:40 PM, Christian Grün <christian.gruen@gmail.com> wrote:
Hi Hans, hi Francis,

I decided to refactor our client query api a little: Variables and the
context item can now be rebound, and a query can be run multiple
times. Please note that the semantics of close() is the same as
before: whenever a query is closed, it will completely be unregistered
and is not available for new executions.

Feedback is welcome,
Christian
___________________________

On Mon, Feb 25, 2013 at 7:59 PM, Hans Hübner <hans.huebner@gmail.com> wrote:
> Hi Christian,
>
>
> On Mon, Feb 25, 2013 at 7:32 PM, Christian Grün <christian.gruen@gmail.com>
> wrote:
>>
>> > https://github.com/hanshuebner/simple-basex
>>
>> thanks for the link; do you want us to add it to our Clients page [1]?
>
>
> I would not mind - The API is different from what the standard BaseX has,
> but I think it is rather easy to use.  I may not use it much myself,
> though...
>
>>
>> > But then,
>> > maybe it would be even better to switch to the ReST interface instead.
>>
>> Just as a hint: for our own, XQuery-based web applications, we have
>> completely switched over to RESTXQ [2, 3].
>
>
> I think this is the route I'm going to follow, too.  My requirements for the
> middle layer are rather moderate and can as well be fulfilled by some code
> that I write in Java instead.
>
> I basically wasted my weekend on coding up the new client, but it sure was
> fun. :)
>
> Cheers,
> Hans