简体   繁体   English

将xsd转换为c ++代码的工具

[英]Tool to convert xsd to c++ code

Is there any tool to convert xsd to c++ code. 有没有工具可以将xsd转换为c ++代码。 The generated code can be used for serialization and parsing the xml. 生成的代码可用于序列化和解析xml。 It should also be run as a independent. 它也应该作为一个独立的运行。
I saw some opensource tools like CodeSynthesis but it has covered by GPL license. 我看到了一些开源工具,如CodeSynthesis,但它已被GPL许可证涵盖。
I am looking for a tool which will generate code that could run independently. 我正在寻找一种工具,它将生成可以独立运行的代码。

xsd.exe generates code for C++\\CLI too. xsd.exe也为C ++ \\ CLI生成代码。
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. 但是在VS CommandPrompt中执行xsd.exe时,在\\ languages部分中可以看到CPP。
Generate the cpp code using the following command : xsd.exe some.xsd /l:CPP /c 使用以下命令生成cpp代码: xsd.exe some.xsd / l:CPP / c

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM