Is bindVariable() in the XML classes two-way?
I am interested in building a Qt C++ program that queries an XML file using XQuery and returns the data retrieved to the C++ program, the data received would be assigned to variables used in other parts of my c++ program. Essentially I want to use an XML file to store the data, XQuery to retrieve the data, and C++ to assign the data to variables to do stuff with. I have read all the examples and docs about interacting with XML and XQuery and I do not find them very helpful. I see that the bindVariable() function allows you to set the value of variables located within the XQuery file. Can it also be used the opposite way allowing me to set the value of variables in the C++ program with data that the XQuery has found?
Could you also provide some simple example code?