[xsd-users] Using both cxx-tree and cxx-parser in one application

Boris Kolpackov boris at codesynthesis.com
Tue Sep 13 09:59:28 EDT 2011


Hi Vaughan,

Vaughan Roberts <Vaughan at Roberts.name> writes:

> Is it possible to have both cxx-parser and cxx-tree in one application?

Yes, that should be possible. You will need to re-map the XML Schema
namespace (xml_schema) for one of the mappings. For example, you could
add:

--namespace-map http://www.w3.org/2001/XMLSchema=xml_schema_tree

When compiling with cxx-tree and:

--namespace-map http://www.w3.org/2001/XMLSchema=xml_schema_parser

When compiling with cxx-parser.

Also, if you use schemas with the same namespace in both mappings,
then you will need to map them to different namespaces as well.

See the XSD compiler command line manual (man pages) for details
on the --namespace-map option:

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

Boris



More information about the xsd-users mailing list