I'm trying to use CodeSynthesis XSD (in Visual Studio 2015) for XML to C++ binding. I have a valid XML schema, but XSD fails to compile it. Here is the error message:
Error MSB3721 The command "xsd.exe cxx-tree --output-dir "." --hxx-suffix ".hxx" --cxx-suffix ".cxx" --ixx-suffix ".ixx" --fwd-suffix "-fwd.hxx" projectSchema.xsd" exited with code 1.
I have tried both the "xsd-cxx-parse" and the "xsd-cxx-tree" build options but they both fail with the same error.
I've tried to compile other schemas in the same project, including examples that come with the CodeSythesis XSD package, and they all successfully compile.
Using xsd
from the command line might give you more information about what's going wrong. There's also a number of switches that are possibly necessary for you to use, e.g. namespace-map
if your schema uses one.