开发者

C++ code/XML generation tools

开发者 https://www.devze.com 2023-01-06 16:04 出处:网络
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/deserializa

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?

Tin开发者_运维问答yXML 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?


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


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.


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

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号