This example executes a simple XQuery expression ("1 to 100"), which returns the numbers from 1 to 100 inclusive.
#include <iostream>
XERCES_CPP_NAMESPACE_USE;
int main(int argc, char *argv[]) {
DOMImplementation *xqillaImplementation =
DOMImplementationRegistry::getDOMImplementation(X("XPath2 3.0"));
{
while(result->iterateNext()) {
std::cout << result->getIntegerValue() << std::endl;
}
}
return 0;
}