-
Notifications
You must be signed in to change notification settings - Fork 116
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
How to serialize XML files using qxorm. #103
Comments
Hello, Why do you prefer XML over JSON ? If you really want to use BOOST XML serialization :
I would recommend to see the file : ./tools/msvc2019_build_all_debug_64b_full.bat |
Firstly, thank you for your reply. Secondly, regarding 'Why do you prefer XML over JSON ?', it is because the program I am currently working on is to parse files provided by another system, so it requires XML reading and writing. Then, it's sad that I still haven't successfully used qxorm: qx:: serialization:: xml on Visual Studio 2022 Then, I compiled my project and encountered a large number of compilation errors. |
In this case, I'm pretty sure boost XML serialization is not for your project, as I said :
boost XML serialization is useful if it is used by the same program, but not to receive XML stream from external applications. What you could do however, but it requires a bit of work on your side, is to create your own XML serialization/deserialization engine based on QxOrm introspection/reflection engine : |
I don't need external programs to receive XML streams, and I don't need communication between my two applications. Instead, I use my current program to parse the XML file generated by the previous program (which will be copied in other ways). After parsing, it is regenerated into a separate XML file. (Finally copied away) So, I just need to call qx:: serialization:: xml:: to_ File (tt, "D: export_drug.xml"); And qx:: serialization:: xml:: from_ File(tt2, "D: export_drag. xml"); However, I failed to use this. So, my question is: |
Hello,
FYI, each release of QxOrm library is tested with boost XML serialization enabled. |
Hello!
I want to serialize XML files using qxorm.
Hi I find a document file: https://www.qxorm.com/qxorm_en/tutorial_3.html
shows that how I can compilation.
And after success to compilation, we still can not use "qx::serialization::xml", shows that xml namespace not define.
The environment I am using is VS2022
I see a sentence like this, but I don't know how to use it in vs2022:
Note : « QxOrm.pri » is a configuration file of QxOrm library. This file must be included in all dependents projects files (*.pro) adding the following line : include(my_path_to_QxOrm_library/QxOrm.pri)
The text was updated successfully, but these errors were encountered: