[xsd-users] error on convering xsd-schema with targetNamespace-attribute

Hildebrandt, Klaus Klaus.Hildebrandt at maurer-electronics.de
Thu Mar 16 08:57:12 EDT 2017


Hallo xsd-support,

I'm trying to create C++ binding for schema from attachment with:
                xsd.exe cxx-tree --namespace-map http://trbio.bsi.bund.de/base/4=gid --root-element test simple.xsd

I get:
error: unable to map XML Schema namespace 'http://trbio.bsi.bund.de/gid/4' to C++ namespace
info: use the --namespace-map or --namespace-regex option to provide custom mapping

as you can see, I use already the --namespace-map option. I found that the error depends on presence of targetNamespace-attribute of schema-fefinition.
the targetNamespace-attribute can't be removed, because the schema is crated by 3rd party.

Can you help me? It's a bug of xsd? Or wrong usage? (I'm new on xsd-Software, we evaluating it for usage in our work)

Regards,
Klaus
-------------- next part --------------
A non-text attachment was scrubbed...
Name: simple.xsd
Type: text/xml
Size: 381 bytes
Desc: simple.xsd
Url : http://codesynthesis.com/pipermail/xsd-users/attachments/20170316/a7c48dfc/simple.bin


More information about the xsd-users mailing list