[xsd-users] KML schema namespace problem

Boris Kolpackov boris at codesynthesis.com
Fri Dec 7 13:13:21 EST 2007


Hi Lane,

Lane Wimberley <techlane64 at gmail.com> writes:

> On a whim, I attempted ...
>
> xsd cxx-tree --generate-polymorphic --root-element --namespace-regex
> http://earth.google.com/kml/2.1=foo::bar kml kml21.xsd

You almost got it right: you just need to use --namespace-map instead
of --namespace-regex. The following command lines worked for me:

xsd cxx-tree --root-element kml --generate-polymorphic --namespace-map http://earth.google.com/kml/2.1=kml kml21.xsd

xsd cxx-tree --root-element kml --generate-polymorphic --namespace-map http://earth.google.com/kml/2.1=kml_2_1 kml21.xsd


Boris




More information about the xsd-users mailing list