Use JAXB (xjc) generated classes in android

clubinfort

New Member
I am using a Rest-Webservice in Android. The Webservice could handle JSON and XML, the API is described as an XSD. So i used JAXB to generate classes from the XSD and then i used jackson json processor to generate json from my instances.The problem is, that jaxb (xjc) generates classes with jaxb annotations and android cant handle those. I tried to add the jaxb-api.jar to my android project but the Dalvik wont use core classes.For my first implementation i manually removed the annotations. But now the xsd was updated and i dont want to do this every time this happens.Do you have any idea how to handle this problem in a better way? Is there a possibility to use jaxb/xjc without annotations or is there another code generater that could do this? Do you know an easy way to remove annotations from java classes (even if they are printed in multiple lines)? Is there a project setting for android eclipse projects, that makes the dalvik to allow core libs?thx, cathixx
 
Back
Top