Open
Description
Describe the solution you'd like
Allow adding to the resulting XML.
Usage example
I want to serialize Java POJOs to XML in Spring REST endpoint, but include XSLT reference so that the browsers render it as HTML.
Additional context
The only similar feature I found is a flag WRITE_XML_DECLARATION.
ObjectMapper mapper = builder.createXmlMapper(true).build();
((XmlMapper) mapper).enable(ToXmlGenerator.Feature.WRITE_XML_DECLARATION);
return new MappingJackson2XmlHttpMessageConverter(mapper);
}