Xerces Anonymous types30 Oct 2008
What does everyone do when using open source project? UHM… find the binary and download it. Oke, that’s not bad but it sometimes pays off to go and use the sources of that project. By sources I mean look at the CVS/SVN repository of the project. Why you may ask?
The reason it pays is because sometimes in the repository you find the latest fixes that are not released yet. The same is with the this issue with xerces I stumbled upon.
What is the problem?
Anonymous type name is not assigned to the simple type definition of a complex type derived by restriction from a complex type with simple content.
What is the fix?
The fix is made by Michael Glavassevich in 2007 but has not been released jet. So while I was looking trough the sources I downloaded from the xerces site (zipped) to see if I can find the problem I found the solution on the net. The solution was already on the SVN trunk of xerces but was not released yet. The actual fix Michael made is in XSDComplexTypeTraverser.java
it replaces this
Sample OUTPUT now: