[xsd-users] Help with regex for typedef traits types

Boris Kolpackov boris at codesynthesis.com
Fri Dec 14 07:08:45 EST 2012


Hi Alejandro,

Alejandro Claro <alejandro.claro at gmail.com> writes:

> Anybody knows if there is a way to change the name of the typedef generate
> by XSDCXX? What I want is to remove underscores.
> 
> This and example:
> 
> typedef ::Saes::Configuration::Serialization::XmlSchemasNecessaryList
> Xml_necessaryType;
> 
> typedef ::xsd::cxx::tree::traits< Xml_necessaryType, char >
> Xml_necessaryTraits;
> 
> I want to get XmlNecessaryType and XmlNecessaryTraits typedefs.

Those are passed through the type regex (--type-regex). For *Type,
the last component will be ',type', for *Traits -- ',traits',
etc. See the NAMING CONVENTION section the XSD compiler command
line manual (man pages).

Boris



More information about the xsd-users mailing list