Hi,

I was exploring BaseX for my XML based product. I was wondering whether there is Prepared Statement Like facility incorporated in BaseX,

With the same QueryProcessor instance, is it possible to execute it multiple times with different binding values for given variable.


I am executing following code.


QueryProcessor pr = new QueryProcessor("declare variable $a external ; $a",context);
pr.context(itr);
pr.bind("a","ABC");
Resultfinalr=pr.execute();
System.out.println("Final Execution Result 1 ::" + finalr);
// rebinding  $a with different value
pr.bind("a", "XYZ");
Result out1 = pr.execute();
System.out.println("Final Execution Result 2 ::" + out1);

*******************************************************************************

I am getting "ABC"  when I am executing second time. I need this because I would be executing the same query multiple times.



Thanks
Anky