Integrating Xquery into my C++ program
-
hey there,
How can I integrate XQuery into my Qt C++ program. Can I mix it with the Qt C++ in a .cpp file or do I have to link it in somehow. I am trying to take data from an XML file and send it to a Qt c++ program/slot. I was intending to use XQuery to extract the data and send it to the C++. How can I do these things?
-
Hi,
I haven't used that yet but isn't "QXmlQuery":http://qt-project.org/doc/qt-5/qxmlquery.html what you are looking for ?
-
QXmlQuery appears to send send data from a Qt program to an XML document. I would like my program to read an XML file and use the data in the XML file as the data for my variables in the Qt program. Can QXmlQuery do this to?
-
Are you thinking of something like "this":http://qt-project.org/doc/qt-5/qxmlquery.html#evaluateTo-4 ?
-
Yes that looks good. Can I use the data gathered from the XML file for the data for variables in the Qt program?
-
You'll have to convert the values you get from your xml to the correct format.