Announcement Announcement Module
Collapse
No announcement yet.
Jaxb2Marshaller does not work with schema the has import Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • Jaxb2Marshaller does not work with schema the has import

    Hello
    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();

    ab.setContextPath("com.ftpmessage.stub");

    cm =(CM)ab.unmarshal(new StreamSource(
    new File("C:/MyEclipse10/myproject/target/local-ftp-temp/gatewayGe/16107067.xml")));

    cm.getAB is always empty.???

  • #2
    I resolved this issue, thanks

    Comment

    Working...
    X