Generate castor xml from xsd

2019-08-07 13:24发布

问题:

I am currently using the Jaxb for Marshalling/Unmarshalling. However I need to use castor due to "demands" and use castor xml instead of castor java classes. I found castor's SourceGeneratorMain which generates xsd to java classes, but I cannot find anything that generates castor xml from xsd. I would just type it out but the xsd im working is huge with more than 2500 lines and over a hundered parameter various arrays in there. Im sure Im going to screw up something, if I type it out.

Has any one used any sort of tool to do this? or what is the most efficient way to get a castor xml from a xsd.

Thanks in advance.