I am working integrating two system which exchange the data using the XML by service. Interfaces are given by other party and we us JAXB to generate Java class. I finished Integration and working fine.
Problem : We have complex XML structure, some elements and complex elements are optional. When we send back , obviously they are null, so Jaxb is not sending as empty tag. Other system need those Empty Tag(May be for audit)
I am using Java/JAXB to do my work.
Please help me to get quick generic solution that I can apply for all my services.