将 xsd 转换为 C++ 代码的工具 [英] Tool to convert xsd to c++ code

查看:39
本文介绍了将 xsd 转换为 C++ 代码的工具的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

有没有什么工具可以把xsd转换成c++代码.生成的代码可用于序列化和解析 xml.它也应该作为独立运行.
我看到了一些像 CodeSynthesis 这样的开源工具,但它已被 GPL 许可所覆盖.
我正在寻找一种可以生成可以独立运行的代码的工具.

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.

推荐答案

xsd.exe 也为 C++\CLI 生成代码.
它没有添加到文档中的 \languages 中.但是当在 VS CommandPrompt 中执行 xsd.exe 时,在 \languages 部分你可以看到 CPP.
使用以下命令生成 cpp 代码:xsd.exe some.xsd/l:CPP/c

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

这篇关于将 xsd 转换为 C++ 代码的工具的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆