This example executes a simple XQuery expression ("1 to 100"), which returns the numbers from 1 to 100 inclusive.
#include <iostream>
int main(int argc, char *argv[]) {
Result result = query->execute(context);
while(item = result->next(context)) {
std::cout << UTF8(item->
asString(context)) << std::endl;
}
return 0;
}