可以使用xsdcxx或xsde库
CodeSynthesis XSD/e is an open-source, dependency-free XML Schema to C++ compiler for mobile, embedded, and light-weight applications. It provides XML parsing, serialization, XML Schema validation and XML data binding while maintaining a small footprint and portability.
This page contains information for XSD/e compiler developers. For an overview of the XSD/e capabilities refer to the XSD/e product page.
LicenseYou can use, distribute, and/or modify XSD/e, its runtime library, and the generated code under the terms of the GNU General Public License, version 2 as published by the Free Software Foundation. Proprietary licenses are available for customers who wish to use XSD/e in closed-source products. Visit the XSD/e product page for more information.
Related ProjectsCompiler DependenciesDepends at build-time:
Depends at run-time:
Depends at run-time:
We provide free, best-effort technical support for XSD/e via the xsde-users mailing list. Simply send an email to this mailing list with the description of a bug or a problem that you encountered. Please follow the Posting Guidelines to receive a prompt reply.
We also offer priority support on a commercial basis. Visit our support page for more information.