简体   繁体   中英

Generate XML Schema(.xsd) to C++ class

I'm new to C++ compare to my ex in using Java and C#. I often use xsd.exe in C#(a plugin in visual studio) to generate C# class from an XML schema

In java I use this command在 Java 中

I have tried using several tools such as(XBEditor, WinLMX,...) to generate C++ class but the result is often different between them and It doesn't look like a C# or Java class but contain too many other information. I just want to ask what is the tool used the most in parsing .xsd to .cpp or In Cpp, this topic doesn't have much support.

Using xsd.exe can also parse .xsd to C++ code by this command :

xsd /language:CPP your.xsd /classes .

It will produce your.h file.

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.

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