When the project I am working on started using castor it was decided that xdoclet tags would be used to create castor mapping files. There are no xsd files associated with the project. Essentially there are java data classes which needed xml representations. So the java source is the 'primary' input, it defines the needed xml.
So, we use xdoclet processing to generate mapping files. Multiple variants of the mapping files are needed due to subsets of the classes being executed in different jvms with different classpaths (e.g., tomcat vs jboss). So the same classes need to have mapping information put in multiple files and these multiple files need to be parsed (albet only once) the first time an object needs to be marshalled (or unmarsalled). It is my understanding that when castor processes a mapping file it creates class descriptor objects, so I was wondering if it wouldn't be better to just use class descriptor classes instead of mapping files? However, to do this I would need a tool for either (a) processing xdoclet tags into class descriptor source or (b) taking a mapping file and generating class descriptor source and I am not aware of any such tool. Hopefully I am incorrect and someone can point me at a way I can create class descriptor source from my xdoclet-taged java source. thanks in advance, Jay Goldman

