Oct 9th, 2012, 09:17 PM
Jaxb2Marshaller does not work with schema the has import
I am using org.springframework.oxm.jaxb.Jaxb2Marshaller to unmarshal xml file. I used the jaxb pluging to generate the objects based on the schema (the schema import another schema (xs:import). The code generated by the jaxb plugin looks correct but when I unmarshal, the object representing the imported schema comes back as empty, but the data for the base schema has the expected data).
so I do not think this is jaxb plugin issue
org.springframework.oxm.jaxb.Jaxb2Marshaller ab = new org.springframework.oxm.jaxb.Jaxb2Marshaller();
cm =(CM)ab.unmarshal(new StreamSource(
cm.getAB is always empty.???
Oct 10th, 2012, 04:30 PM
I resolved this issue, thanks