Mr. Boy
Mr. Boy

Reputation: 63826

C++ code/XML generation tools

I'm not sure what exactly the right term is, kind of like ORM using XML as the data store. Are there any decent tools which will autogenerate C++ classes (including data and serialization/deserialization) based on an XML schema? Or will create XML-sync code and schema based on a C++ class definition?

TinyXML is great but it's so old-school to spend all that time writing code to load/save XML data to classes. I've seen similar tools focused on SOAP/WSDL, but they generated all kinds of other code on top of the basics.

Any good open-source libraries out there?

Upvotes: 2

Views: 2678

Answers (3)

Dr. Alex RE
Dr. Alex RE

Reputation: 1708

If you are looking for an open source and commercial licensed tool to auto-generate C++ classes, including data and serialization/deserialization, based on an XML schema, then I strongly recommend GSOAP. It is easy to use, compliant to industry standards, and actively maintained.

See also http://www.rpbourret.com/xml/XMLDataBinding.htm

I was disappointed with many other C++ XML tools that promise full data bindings but will fail to process more extensive sets of WSDLs and schemas such as ONVIF. Having to retool an entire project was a pain. I know that GSOAP will do the job. A winner IMHO.

Upvotes: 2

Ira Baxter
Ira Baxter

Reputation: 95420

Not open source, but won't XML Thunder work for you?

Upvotes: 0

Jerry Coffin
Jerry Coffin

Reputation: 490693

The only thing I've seen that attempts to do this is CodeSynthesisXSD.

Upvotes: 2

Related Questions