[xsd-users] Using both cxx-tree and cxx-parser in one application
Vaughan Roberts
Vaughan at Roberts.name
Tue Sep 13 19:46:05 EDT 2011
Thanks Boris!
I set the xsd namespace-map compiler option in the cxx-tree version as
suggested below and that did the trick.
Best regards,
Vaughan
Mob: 0412 122 362
-----Original Message-----
From: xsd-users-bounces at codesynthesis.com
[mailto:xsd-users-bounces at codesynthesis.com] On Behalf Of Boris Kolpackov
Sent: Tuesday, 13 September 2011 23:59
To: Vaughan Roberts
Cc: xsd-users at codesynthesis.com
Subject: Re: [xsd-users] Using both cxx-tree and cxx-parser in one
application
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