Ben Davies opened SPR-6907 and commented
The current jibx oxm marshaller hides everything away from the user, making it impossible to utilise all of jibx's feature.
I need to be able to add a doctype to my marshalled document, but this is not possible with spring's current implementation.
The change would involved replacing all instances of
marshallingContext.marshalDocument(...)
with something like:
marshallingContext.startDocument(...)k
marshallingContext.getXmlWriter().writeDocType(...); //(if Doctype specified)
marshallingContext.marshalRoot(objectToBeMarshalled);
marshallingContext.endDocument();
Cheers,
Ben
Affects: 3.0.1
Referenced from: commits 9d1c3fa, 894875c