Community
Participate
Working Groups
http://jaxb.java.net/2.2/docs/vendorProperties.html#xmldecl http://old.nabble.com/adding-DTD-declaration-to-an-xml-file-td17646322.html "This property allows you to specify an XML preamble (<?xml ...> declaration) and any additional PIs, comments, DOCTYPE declaration that follows it. This property takes effect only when you are marshalling to OutputStream, Writer, or StreamResult. Note that this property interacts with the Marshaller.JAXB_FRAGMENT property. If that property is untouched or set to false, then JAXB would always write its XML preamble, so this property can be only used to write PIs, comments, DOCTYPE, etc. On the other hand, if it is set to true, then JAXB will not write its own XML preamble, so this property may contain custom XML preamble." e.g. marshaller.setProperty("com.sun.xml.bind.xmlHeaders", "<!DOCTYPE ....>\n");
Created attachment 215771 [details] Patch - code changes (trunk)
Created attachment 215772 [details] Patch - test changes (trunk)
Created attachment 215793 [details] Patch - code changes - 2.4
Created attachment 215794 [details] Patch - test changes - 2.4
Created attachment 215796 [details] Patch - test changes - 2.4
Created attachment 215798 [details] Patch - code changes - 2.4
Created attachment 215807 [details] Patch - code changes - 2.4
Complete, checked into 2.4, reviewed by bdoughan.
The Eclipselink project has moved to Github: https://github.com/eclipse-ee4j/eclipselink