It doesn't look like your traversal code walks to the complex type
definition with that annotation. It's global so you can easily get to it
from the XSModel.
XSModel model = ...;
...
XSNamedMap map = model.getComponents(XSTypeDefinition.COMPLEX_TYPE);
...
Thanks.
Michael Glavassevich
XML Parse
Use schema API to query annotation. But failed to obtain it in the
case B(see below, search keyword case B):
How to get the annotation in the case B?
Enclosed the test program and testc.xsd.
The working environment is java 6 and xerces-j-9
http://www.w3.org/2001/XMLSchema";
targetNamespace