JiBX Marshalling: Omit XML Declaration?

ninacerise

New Member
I am using Spring to marshall Java objects to XML via JiBX. Some of the XML documents I am generating are really XML snippets that will be aggregated into a larger XML document. For this reason, I do not want the XML declaration generated to the top of each generated document (e.g. \[code\]<? xml... ?>\[/code\]).Is there a way to configure Spring OXM or JiBX itself to not output this declaration?Obviously I can just strip it out myself but it makes for some more awkward code.Thanks.
 
Back
Top