[xsd-users] Empty enumeration results in cxx value

Boris Kolpackov boris at codesynthesis.com
Tue Nov 17 12:34:53 EST 2009


Hi Stephen,

Stephen James <Stephen.James at genband.com> writes:

> I get and error when I try what is suggested.
> 
> ../xsd-3.2.0-sparc-solaris/bin/xsd cxx-tree --cxx-suffix .cc
> --hxx-suffix .h --enumerator-regex //empty_value/ acbtcap.xsd
> error: invalid enumerator name regex: '': Empty expression

Sorry, I was using the development build of XSD which uses a newer 
version of the Boost regex library. The following equivalent
expression works for me with the 3.2.0 binaries:

--enumerator-regex '/^$/empty_value/'

Boris



More information about the xsd-users mailing list