I know that I could convert XSD schema to C++ classes using codesynthesis mechanism. What about vice versa?
Lets say I have a very difficult class hierarchy in C++ and I would like to get XSD schema, so I could use it by any other language in future?
I don't know about any ready-made tool but clang provides an interface to the AST produced from C++ sources. It would be possible to create suitable tool on the basis of this this AST.
There is also gccxml which represents, at least, the declarations found in a C++ using XML. However, I haven't used gccxml and I don't know if it is still maintained.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.