user2706838
user2706838

Reputation: 1181

C++ classes hierarchy => to XSD schema? Anyone know tool or example?

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?

Upvotes: 2

Views: 164

Answers (1)

Dietmar Kühl
Dietmar Kühl

Reputation: 153955

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.

Upvotes: 3

Related Questions