Skip to content

JibxMarshaller - provide access to jibx's writeDocType [SPR-6907] #11572

@spring-projects-issues

Description

@spring-projects-issues

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

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions