[xsd-users] schema to c++ namespace mapping problem

Boris Kolpackov boris at codesynthesis.com
Tue Jul 2 03:43:09 EDT 2013


Hi Ashok,

Ashok Shenoy <kashokshenoy at gmail.com> writes:

> under the namespace: http://www.digicine.com/PROTO-ASDCP-AM-20040311#
> 
> yes there is a '#' at the end of the namespace!
> 
> how can I do a --namespace-map for the same to a c++ namespace?

I think the XSD compiler command line manual (man pages) has a
pretty good description of this option and even an example:

http://www.codesynthesis.com/projects/xsd/documentation/xsd.xhtml

On Linux/UNIX you need to quote the option value because of the '#'
character:

--namespace-map 'http://www.digicine.com/PROTO-ASDCP-AM-20040311#=my_ns'

Boris



More information about the xsd-users mailing list