I need to parse the Java-object which is passed through XML I have used JACB I want to use the framework, because I have been pre-annotated (using jaxb) java-class
Is it possible in theory?
InputStream input = entity.getContent (); JAXBContext Jesse = JAXBContext.newInstance (new class [] {Response.LoginResponse.class}); Unmarshaller un = jc.createUnmarshaller (); Login Response Response = (Login) un.unmarshal (input); In line 4, I have a warning: "Unable to resolve static method 282 JAXBContext ..." and then VM crashes Any problem about how to solve it?
I am not solving your problem at all, but JAXB is not included in Android by default And the library will cost you 9 (!) MBK APK. Try instead its similar abilities are more lightweight.
Comments
Post a Comment