[xsd-users] Generate separate header file for specific elements
Boris Kolpackov
boris at codesynthesis.com
Mon Jul 2 09:07:19 EDT 2012
Hi Philipp,
Philipp Schmidt <philschmidt at gmx.net> writes:
> I have xsd files where the lowest two elements that are needed to nest every
> other element are defined in every single xsd file, as well as most complex
> datatypes. Can I use --generate-xml-schema to put these definitions into a
> general header that I can then include everywhere else
No, --generate-xml-schema won't help you here. To achieve what you want
you will need to factor these common types out into a separate schema
file and then xs:include it in all the other files. And the resulting
generated C++ code will have the same structure.
Boris
More information about the xsd-users
mailing list