| | | | Browse by category |
When running:
xsd2cpp mycd.xsd
I get the following output:
Error: Xalan version 2.0.1 required, version 2.2.D11 detected.
Cause
At code generation time we detect the available version of xalan, and prevent use of versions other than the one we tested - 2.0.1.
The reason for this is that XML Object Link code generator relies on a feature called a namespace axis to resolve namespaces. The version of Xalan bundled with the JDK/JRE 1.4.x version does not support the namespace axis feature, so the code generator goes into an infinite loop while trying to resolve types, which it can do only by examining the namespace axis.
Action
In order to use JRE 1.4.x or later, you can use a documented standards override mechanism as illustrated at
http://java.sun.com/j2se/1.4/docs/guide/standards/.
A summary of the workaround is as follows:
1) Create a directory named "endorsed" in the <jre>\lib directory.
2) Copy the <xmlol-home>\bin\xmlol.jarfile into this endorsed directory.
You should now be able to execute the XML Object Link code generator.