spring-framework / org.springframework.oxm.castor / CastorMarshaller / setMarshalAsDocument

setMarshalAsDocument

open fun setMarshalAsDocument(marshalAsDocument: Boolean): Unit

Set whether this marshaller should output the xml declaration.

The default is true, the XML declaration will be written.

See Also
org.exolab.castor.xml.Marshaller#setMarshalAsDocument(boolean)