Fresher
Fresher

Reputation: 523

Tool to convert xsd to c++ code

Is there any tool to convert xsd to c++ code. The generated code can be used for serialization and parsing the xml. It should also be run as a independent.
I saw some opensource tools like CodeSynthesis but it has covered by GPL license.
I am looking for a tool which will generate code that could run independently.

Upvotes: 2

Views: 3331

Answers (1)

Fresher
Fresher

Reputation: 523

xsd.exe generates code for C++\CLI too.
It is not added in \languages in the documentation. But when executing xsd.exe in VS CommandPrompt, in the \languages section you could see CPP.
Generate the cpp code using the following command : xsd.exe some.xsd /l:CPP /c

Upvotes: 5

Related Questions