[xsd-users] similar schemas and name spaces

B Hart bhartsb at gmail.com
Thu Dec 8 13:28:47 EST 2011


Okay, thanks.  I will try to remember to reply all.

On Thu, Dec 8, 2011 at 5:16 AM, Boris Kolpackov <boris at codesynthesis.com>wrote:

> 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