Search code examples
c++xmlxqueryqt6xqilla

How to pass a variable to XQuery using XQilla in C++


I am using XQilla to evaluate XQuery in C++.

In the XQuery, we define two variables: $metadataContent and $nuiContent.

Each variable maps to an XML document.

How can I pass the variable to XQuery from my C++ code, and then evaluate the query?


Solution

  • Fixed from the help of @Martin Honnen Example code here: https://saxonica.plan.io/projects/saxonmirrorhe/repository/he/revisions/he_mirror_saxon_12_4_1/entry/src/main/c/samples/cppTests/testXQuery.cpp#L265