Couple of more questions. 1. When I create the Schema model, I explicitly declare the Schema.DEFAULT_SCHEMA_NS with the prefix "xs". But when I add an element type as xs:string, Castor schema model removes the "xs" part and uses the default namespace which is declared internally to be Schema.DEFAULT_SCHEMA_NS by the schema model. How can I set off this default default_ns declaration so that it will only have the namespace that I declare?
2. I am now testing my code using the samples given in JAXB2 RI download. Also I am trying to automate these tests to do the following. There will be a set of JAXB2 generated classes for each test case. I generate a schema using my code and I generate the schema using JAXB2 schemagen tool also. Then I will compare my schema vs the schema came out from JAXB. Do you think this is a good approach for testing which I will later commit in to Castor code base? Thanks, SD