JAXB – Unmarshalling and avoiding the DOM

JAXB is a great tool for working with XML and Java, but it can be very confusing. We encountered a situation where JAXB generated DOM objects (elementNsImpl), instead of JAXB objects, when unmarshalling. This occurred when working with the CIM (Common Information Model) standard,  CIM_INUP message. The INUP message has a HeaderType with an any…