[xsd-users] similar schemas and name spaces

Boris Kolpackov boris at codesynthesis.com
Thu Dec 8 08:16:27 EST 2011


Hi,

In the future please keep your replies CC'ed to the xsd-users mailing
list as discussed in the posting guidelines:

http://www.codesynthesis.com/support/posting-guidelines.xhtml

B Hart <bhartsb at gmail.com> writes:

> Boris Kolpackov <boris at codesynthesis.com> writes:
>
> > The correct approach is to place the schemas into different C++ namespaces
> > using the --namespace-map option. If your schemas do not have an XML
> > namespace (i.e., no tragetNamespace attribute), then use this syntax:
> >
> > --namespace-map =my_namespace
>
> And if they do have a target namespace specified???

Then you specify the XML namespace before the equal sign:

--namespace-map http://www.example.com/my-xml-namespace=my_namespace

BTW, all this is documented in the XSD compiler command line manual 
(man pages):

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

Boris



More information about the xsd-users mailing list