[xsd-users] --custom-type-regex bug
Boris Kolpackov
boris at codesynthesis.com
Mon Sep 28 04:00:59 EDT 2009
Hi Zoltan,
Zoltan Szatmary <zszatmary at gmail.com> writes:
> it seems to me, that --custom-type-regex does not work as expected
> when generating C++/Tree. An option given to xsd.exe in the form of
>
> --custom-type-regex /Foo(.*)/Bar\1/
>
> yields typedefs explicitly defining a 'Bar\1' type every time a type
> name starting with 'Foo' in the XSD is matched.
The regex expressions used in XSD are all in the perl notation so
you need to use $1 instead of \1 (which is a sed notation).
Boris
More information about the xsd-users
mailing list