Hi,
Please bear in mind that we are going to need a little 'infrastructure' to be able to read those annotations as well. I am not 100% whether this is part of your assignment or not, as there's some overlap with another GSoC student. In other words, that's to be defined.
I was initially thinking of using JAM (http://annogen.codehaus.org/) for this. You were talking about another SoC project on this. Is it completed or going with me in parallel. If it is going with me in parallel, then I don't think it is a good idea to depend on it, from my project point-of-view. Just for your information, Cstor already now has a component that we
name externally 'xml schema instance 2 schema' convertor. It is a little tool that you can use to derive an XML schema from an XML instance document. Not exactly what you are looking for, but at least it makes use of the very same infrastructure (schema.* classes, SchemaWriter, etc.).
I am still confused how this can help me. IIUC, this will generate a schema looking at a XML file. Were you trying to say this, XML -> schema conversion is almost same as Java -> Schema conversion? Anyway, I looked a bit more in to the project. In a nutshell do you think my project is to implement JAXB2 annotations? What I meant by implement is to read and understand all the java files thru reflection together with the annotations (perhaps using JAM) and derive the schema by looking at it? (BTW, the idea of hacking existing code of JAXB2 might not be a good idea as I think it involves some licensing issues which I am not that familiar to deal with.) Please let me know whether the path that I am taking is correct and also please provide me with alternatives and suggestions if any. I already started reading JAXB 2.0 spec. Seems I have some tough time ahead :) Thanks, SD