[xsd-users] Enumerated strings parser generation

Chris Gagneraud chgans at googlemail.com
Wed Nov 2 02:09:06 EDT 2016


Hi there,

My XML schema has a lot (and a lot) of enumerated string types, when
using the cxx-tree generator everything is easy, generated type
parsers include the enum declaration and ad-hoc xml parsers, but when
using the cxx-parser, nothing is done at all, i end up having to write
the boiler plate.

I understand the difference b/w cxx-tree and cxx-parser, but in this
case, is it possible to hit a middle ground? For example it would be
nice to have all the enum literals arrays generated (and why not the
enum definition too, that i could potentially use as-is or modify, a
bit like the 'dummy' impl using eg, --generate-print-impl).

Given the amount of enum i have to deal with, I will have to write my
own XSD enum  to C++ enum helper generator. Which sound completely
weird given the purpose of  xsd-cxx!

I haven't try to hack into xsd-cxx source code, and i would prefer to
avoid having to deal with a customised tool.

Would anyone know a way to achieve this? Any point-out appreciated.

Thanks,
Chris



More information about the xsd-users mailing list